|
@@ -5,8 +5,6 @@ set -eu -o pipefail
|
|
|
fqdn=$(hostname -f)
|
|
|
|
|
|
chown -R cloudron.cloudron /app/data
|
|
|
-mkdir -p /home/cloudron/gogs/log
|
|
|
-chown cloudron:cloudron /home/cloudron/gogs/log
|
|
|
|
|
|
# Dockerfile changes the ownership of this file to make it writable by cloudron user
|
|
|
sed -e "s/^Port .*/Port ${SSH_PORT}/" \
|
|
@@ -57,11 +55,6 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \
|
|
|
-e "s/##MAIL_PORT/${MAIL_SMTP_PORT}/g" \
|
|
|
-e "s/##MAIL_FROM/${MAIL_SMTP_USERNAME}@${MAIL_DOMAIN}/g" \
|
|
|
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
|
|
|
- -e "s/##OAUTH_CLIENT_ID/${OAUTH_CLIENT_ID}/g" \
|
|
|
- -e "s/##OAUTH_CLIENT_SECRET/${OAUTH_CLIENT_SECRET}/g" \
|
|
|
- -e "s,##OAUTH_AUTH_URL,${ADMIN_ORIGIN}/api/v1/oauth/dialog/authorize,g" \
|
|
|
- -e "s,##OAUTH_TOKEN_URL,${ADMIN_ORIGIN}/api/v1/oauth/token,g" \
|
|
|
- -e "s,##CLOUDRON_ORIGIN,${ADMIN_ORIGIN},g" \
|
|
|
/home/cloudron/app.ini.template > "/home/cloudron/gogs/custom/conf/app.ini"
|
|
|
|
|
|
supervisorctl restart gogs
|