Added Wait for starting git

This commit is contained in:
bprieshof
2019-10-10 15:27:48 +02:00
parent d115d772d2
commit c0d56fb295

View File

@@ -191,8 +191,11 @@ sed -i -e 's/DBName/'$db_name'/' -e 's/DBUser/'$db_user'/' -e 's/DBPass/'$db_pas
systemctl enable gitea systemctl enable gitea
systemctl start gitea systemctl start gitea
echo "Git is starting, this will take 5 minutes."
sleep 300
su git -c "cd /home/git && /usr/local/bin/gitea admin create-user --admin --username="$gtusr" --password="$gtpwd" --email="$gtem" --config=/etc/gitea/app.ini" su git -c "cd /home/git && /usr/local/bin/gitea admin create-user --admin --username="$gtusr" --password="$gtpwd" --email="$gtem" --config=/etc/gitea/app.ini"
##--------------------## ##--------------------##
# Install Postfix # # Install Postfix #
##--------------------## ##--------------------##
@@ -228,8 +231,7 @@ sed -i 's#include /etc/letsencrypt/options-ssl-nginx.conf;#ssl_ciphers EECDH+CHA
##---------------## ##---------------##
echo"Done!" echo "Done!"
echo "Git is starting, this can take up to 5 minutes."
echo "" echo ""
echo "When git is started login using the following credentials" echo "When git is started login using the following credentials"
echo "LoginPage="$domain"/user/login" echo "LoginPage="$domain"/user/login"