From fa0bddd5c59f3bd88b33b1603603004a5eb3a08c Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Wed, 1 Feb 2023 14:28:15 +0000 Subject: [PATCH] fixing the drone admin user hash --- drone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drone.sh b/drone.sh index 0b6308a..82462c7 100755 --- a/drone.sh +++ b/drone.sh @@ -4,7 +4,7 @@ export HOSTNAME=$(hostname) export DRONE_VERSION=2.16.0 export DRONE_RUNNER_VERSION=1.8.3 export GITEA_ADMIN_USER="admin" -export DRONE_RPC_SECRET="$(echo ${HOSTNAME} | openssl dgst -md5 -hex)" +export DRONE_RPC_SECRET="$(echo ${HOSTNAME} | openssl dgst -md5 -hex|cut -d' ' -f2)" export DRONE_USER_CREATE="username:${GITEA_ADMIN_USER},machine:false,admin:true,token:${DRONE_RPC_SECRET}" # These are set in ~/.bash_profile