Update install.sh

- empty install-folder after installing
- removing git-caused subfolder BOSWatch

Still remaining: suitable rights for this folder (instead of 777)
This commit is contained in:
Florian 2017-02-19 14:41:03 +01:00 committed by GitHub
parent 689b1bc8b1
commit f13276c1bc

View file

@ -32,7 +32,7 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
echo "This may take a several minutes... Don't panic!"
echo "This may take several minutes... Don't panic!"
echo ""
echo "Caution, script does not install a webserver with PHP and MySQL"
echo "So you have to make up manually if you want to use MySQL support"
@ -192,6 +192,14 @@ echo "and modify the config as you need. This step is optional if you are upgrad
tput cnorm
# cleanup
mkdir $boswatchpath/log/install -p
mv $boswatchpath/install/setup_log.txt $boswatchpath/log/install/
rm $boswatchpath/install/ -R
mv $boswatchpath/BOSWatch/* $boswatchpath/
rm $boswatchpath/BOSWatch -R
if [ $reboot = "true" ]; then
/sbin/reboot
fi