Added Wait for starting git
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user