Added fix for .webhook.secret
This commit is contained in:
parent
b607eb9460
commit
dfe2aa1ffa
@ -1495,7 +1495,9 @@ get_appvars() {
|
|||||||
WEBHOOK_SECRET=$(cat /federated/apps/gitea/.webhook.secret)
|
WEBHOOK_SECRET=$(cat /federated/apps/gitea/.webhook.secret)
|
||||||
else
|
else
|
||||||
WEBHOOK_SECRET=$(create_password)
|
WEBHOOK_SECRET=$(create_password)
|
||||||
echo "$WEBHOOK_SECRET" > /federated/apps/gitea/.webhook.secret
|
if [[ -d "/federated/apps/gitea" ]]; then
|
||||||
|
echo "$WEBHOOK_SECRET" > /federated/apps/gitea/.webhook.secret
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get LDAP DOMAIN from ldap its self and setup variables for each part
|
# Get LDAP DOMAIN from ldap its self and setup variables for each part
|
||||||
|
Loading…
x
Reference in New Issue
Block a user