mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-15 20:51:08 +00:00
Remove unnecessary restart
This commit is contained in:
parent
f344899b67
commit
46e370c786
1 changed files with 1 additions and 3 deletions
4
start.sh
4
start.sh
|
@ -35,7 +35,7 @@ chown cloudron:cloudron /home/cloudron/gogs/custom/conf/app.ini
|
|||
/usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Gogs &
|
||||
|
||||
# Wait for gogs to finish db setup, before we insert ldap source in db
|
||||
while curl --fail http://localhost:3000/healthcheck; do
|
||||
while ! curl --fail http://localhost:3000/healthcheck; do
|
||||
echo "Waiting for gogs to come up"
|
||||
sleep 1
|
||||
done
|
||||
|
@ -44,7 +44,5 @@ done
|
|||
mysql -u"${MYSQL_USERNAME}" -p"${MYSQL_PASSWORD}" -h mysql --database="${MYSQL_DATABASE}" \
|
||||
-e "REPLACE INTO login_source VALUES (1,2,'cloudron',1,'{\"Name\":\"cloudron\",\"Host\":\"${LDAP_SERVER}\",\"Port\":${LDAP_PORT},\"UseSSL\":false,\"UserBase\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"Enabled\":true}',1,'2015-06-24 17:14:12','2015-06-24 17:25:03');"
|
||||
|
||||
supervisorctl restart gogs
|
||||
|
||||
wait
|
||||
|
||||
|
|
Loading…
Reference in a new issue