mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
Update install.sh
This commit is contained in:
parent
af22a11aaf
commit
70c8c93dc5
1 changed files with 6 additions and 1 deletions
|
@ -76,4 +76,9 @@ sudo git clone --depth=1 https://github.com/Websoft9/stackhub.git
|
|||
cd stackhub/apps
|
||||
sudo echo "localhost" > hosts
|
||||
ansible-playbook -i hosts application.yml -c local -e init=$repo_init -e appname=$repo_name
|
||||
echo "System must restart after 2s, then installation completed"; sleep 2 ; sudo reboot
|
||||
if [ "$?"= "0" ]; then
|
||||
echo "System must restart after 2s, then installation completed"; sleep 2 ; sudo reboot
|
||||
else
|
||||
echo "Ansible execute error!" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue