mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-11-06 18:12:36 +00:00
Gogs actually needs sshd
This commit is contained in:
8
start.sh
8
start.sh
@@ -14,10 +14,16 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \
|
||||
-e "s/##MYSQL_PASSWORD/${MYSQL_PASSWORD}/g" \
|
||||
-e "s/##MYSQL_DATABASE/${MYSQL_DATABASE}/g" \
|
||||
-e "s/##MAIL_SERVER/${MAIL_SMTP_SERVER}/g" \
|
||||
-e "s/##MAIL_PORT/${MAIL_SMTP_PORT}/g" \
|
||||
-e "s/##MAIL_FROM/${MAIL_SMTP_USERNAME}@${MAIL_DOMAIN}/g" \
|
||||
/home/cloudron/app.ini.template > "/home/cloudron/gogs/custom/conf/app.ini"
|
||||
|
||||
chown -R cloudron.cloudron /app/data
|
||||
|
||||
/home/cloudron/gogs/gogs web
|
||||
# Dockerfile changes the ownership of this file to make it writable by cloudron user
|
||||
sed -e "s/^Port .*/Port ${SSH_PORT}/" \
|
||||
-e "s/^#ListenAddress .*/ListenAddress 0.0.0.0/" \
|
||||
-i /etc/ssh/sshd_config
|
||||
|
||||
/usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Gogs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user