Browse Source

Update install.sh

qiaofeng1227 2 years ago
parent
commit
7ac186252b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/install.sh

+ 1 - 1
scripts/install.sh

@@ -76,7 +76,7 @@ sudo git clone --depth=1 https://github.com/Websoft9/stackhub.git
 cd stackhub/apps
 cd stackhub/apps
 sudo echo "localhost" > hosts
 sudo echo "localhost" > hosts
 ansible-playbook -i hosts application.yml -c local -e init=$repo_init -e appname=$repo_name
 ansible-playbook -i hosts application.yml -c local -e init=$repo_init -e appname=$repo_name
-if [ $init -ne 0  ]; then
+if [ $repo_init  -ne 0  ]; then
    echo "Image build success!"
    echo "Image build success!"
 else
 else
    echo  "System must restart after 2s, then installation completed"; sleep 2 ; sudo reboot
    echo  "System must restart after 2s, then installation completed"; sleep 2 ; sudo reboot