1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

common style

This commit is contained in:
Jerry Vonau 2017-10-28 18:29:09 -05:00
parent 87c81df5e0
commit b8db298203

View file

@ -15,35 +15,30 @@ cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
STAGE="" STAGE=""
if [ -f /etc/iiab/iiab.env ] if [ -f /etc/iiab/iiab.env ]; then
then
OLD=`grep XSCE /etc/iiab/iiab.env | wc -l` OLD=`grep XSCE /etc/iiab/iiab.env | wc -l`
if [ "$OLD" != 0 ] if [ "$OLD" != 0 ]; then
then
echo "Found old XSCE install - re-installing from scratch" echo "Found old XSCE install - re-installing from scratch"
rm /etc/iiab/iiab.env rm /etc/iiab/iiab.env
# check ansible version here and force ansible upgrade if needed # check ansible version here and force ansible upgrade if needed
else else
source /etc/iiab/iiab.env source /etc/iiab/iiab.env
if [ ! $STAGE == 9 ] if [ ! $STAGE == 9 ]; then
then
echo "Restarting from STAGE $STAGE" echo "Restarting from STAGE $STAGE"
fi fi
if [ $STAGE == 9 ] if [ $STAGE == 9 ]; then
then
# place keeper # place keeper
echo "offer 'Y' dialog box and --debug option to override" echo "offer 'Y' dialog box and --debug option to override"
echo "need to rewrite STAGE= before ansible is called or rm iiab.env" echo "need to rewrite STAGE= before ansible is called or rm iiab.env"
sleep 5 sleep 5
# exit 0 #exit 0
fi fi
fi fi
else else
mkdir -p /etc/iiab mkdir -p /etc/iiab
fi fi
if [ ! -f $PLAYBOOK ] if [ ! -f $PLAYBOOK ]; then
then
echo "IIAB Playbook not found." echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo." echo "Please run this command from the top level of the git repo."
echo "Exiting." echo "Exiting."