Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Fixing issue in clean.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
sajhak committed May 29, 2014
1 parent 3f4819b commit d67ca50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,15 @@ if [[ $clean_puppet = "true" ]]; then
sudo /etc/init.d/puppetmaster restart
fi


if [[ -z $clean_install ]]; then
read -p "Do you want to clean Private PaaS Install Directory in $stratos_install_path? [y/n] " input_clean_install
if [[ $iinput_clean_install =~ ^[Yy]$ ]]; then
if [[ $input_clean_install =~ ^[Yy]$ ]]; then
rm -rf $stratos_install_path/*
echo "Private PaaS install directory cleaned up !"
else
echo "Private PaaS install directory didn't clear"
fi
fi

echo -e "\nSuccessfully cleaned up everything!"
# END
4 changes: 0 additions & 4 deletions stratos-installer/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ if [[ -d $stratos_path/scripts ]]; then
rm -rf $stratos_path/scripts
fi

if [[ -d $stratos_path ]]; then
echo 'Removing Stratos'
rm -rf $stratos_path/*
fi

echo 'Removing logs'
rm -rf $log_path/*

0 comments on commit d67ca50

Please sign in to comment.