From f13276c1bc333e7c90242f5009f12780cc2a4813 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 19 Feb 2017 14:41:03 +0100 Subject: [PATCH] Update install.sh - empty install-folder after installing - removing git-caused subfolder BOSWatch Still remaining: suitable rights for this folder (instead of 777) --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b88cee8..3bd2c48 100644 --- a/install.sh +++ b/install.sh @@ -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