From 46e370c7865663b144dd84f40d4a53fdd1ec0c70 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 18 Aug 2015 15:12:29 -0700 Subject: [PATCH] Remove unnecessary restart --- start.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/start.sh b/start.sh index a1b0e5b..182dff5 100755 --- a/start.sh +++ b/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