Added fix for .webhook.secret

This commit is contained in:
root 2024-11-19 19:57:08 +00:00
parent b607eb9460
commit dfe2aa1ffa

View File

@ -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