mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Exit w/ explanation if /opt/iiab/iiab was deleted
This commit is contained in:
parent
210c5883bd
commit
c92dd3ddbf
1 changed files with 13 additions and 11 deletions
24
iiab-support
24
iiab-support
|
@ -55,17 +55,19 @@ else
|
||||||
else
|
else
|
||||||
echo "openvpn_install: True" >> /etc/iiab/local_vars.yml
|
echo "openvpn_install: True" >> /etc/iiab/local_vars.yml
|
||||||
fi
|
fi
|
||||||
#cd /opt/iiab/iiab
|
|
||||||
#./runrole 1-prep
|
if [ -d /opt/iiab/iiab ]; then
|
||||||
|
cd /opt/iiab/iiab
|
||||||
#CWD=`pwd`
|
#CWD=`pwd`
|
||||||
#export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
|
#export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
|
||||||
|
export ANSIBLE_LOG_PATH="/opt/iiab/iiab/iiab-install.log"
|
||||||
# For log file, in case git tree deleted, on IIABs with very small disks:
|
ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local
|
||||||
mkdir -p /opt/iiab/iiab
|
# Above is tighter/better than running all of "./runrole 1-prep"
|
||||||
export ANSIBLE_LOG_PATH="/opt/iiab/iiab/iiab-install.log"
|
echo
|
||||||
ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local
|
else
|
||||||
echo
|
echo -e 'Directory /opt/iiab/iiab does not exist: CANNOT INSTALL OPENVPN!\n'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Now let's (re)enable OpenVPN...\n"
|
echo -e "Now let's (re)enable OpenVPN...\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue