From c0d56fb2956a80b8f576f670b8d32606563b7dc3 Mon Sep 17 00:00:00 2001 From: bprieshof Date: Thu, 10 Oct 2019 15:27:48 +0200 Subject: [PATCH] Added Wait for starting git --- Gitea-Installer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gitea-Installer.sh b/Gitea-Installer.sh index 21a7a58..c6c349a 100644 --- a/Gitea-Installer.sh +++ b/Gitea-Installer.sh @@ -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 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" + ##--------------------## # Install Postfix # ##--------------------## @@ -228,8 +231,7 @@ sed -i 's#include /etc/letsencrypt/options-ssl-nginx.conf;#ssl_ciphers EECDH+CHA ##---------------## -echo"Done!" -echo "Git is starting, this can take up to 5 minutes." +echo "Done!" echo "" echo "When git is started login using the following credentials" echo "LoginPage="$domain"/user/login"