mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update install.sh
This commit is contained in:
parent
085da19506
commit
1233083bc2
1 changed files with 2 additions and 3 deletions
|
@ -76,9 +76,8 @@ 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 [ $? -ne 0 ]; then
|
if [ $init -ne 0 ]; then
|
||||||
echo "Ansible execute error!" 1>&2
|
echo "Image build success!"
|
||||||
exit 1
|
|
||||||
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
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue