diff --git a/update.sh b/update.sh index 98b180e..8c3776b 100644 --- a/update.sh +++ b/update.sh @@ -916,8 +916,10 @@ sudo git checkout Self_Service if [ ! -d "/opt/FDMR-Monitor2/data" ]; then mkdir /opt/FDMR-Monitor2/data fi -if [ "$(ls -A "/opt/FDMR-Monitor2/data/")" ]; then - rm -rf "/opt/FDMR-Monitor2/data/"* +if [ -d "/opt/FDMR-Monitor2/data/" ]; then + if [ "$(ls -A "/opt/FDMR-Monitor2/data/")" ]; then + rm -rf "/opt/FDMR-Monitor2/data/"* + fi fi chmod -R 777 /opt/FDMR-Monitor2/* chmod -R +x /opt/FDMR-Monitor2/* @@ -939,7 +941,7 @@ sed -i "s/SUBSCRIBER_FILE =.*/SUBSCRIBER_FILE = subscriber_ids.json/g" /opt/FDMR sed -i "s/FILES_PATH =.*/FILES_PATH = \/opt\/FDMR-Monitor2\/data/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /opt/FDMR-Monitor2/html/config.php variable2=$(date +'%Y' | tail -c 5) -sed -i "s/#fff/#d1d1d1/g" /opt/FDMR-Monitor2/html/plugins/adminlte/css/adminlte.min.css +#sed -i "s/#fff/#d1d1d1/g" /opt/FDMR-Monitor2/html/plugins/adminlte/css/adminlte.min.css sed -i "s/f8f9fa/d0d0d0/g" /opt/FDMR-Monitor2/html/plugins/adminlte/css/adminlte.min.css sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /opt/FDMR-Monitor2/html/ssconfunc.php #sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /var/www/fdmr2/ssconfunc.php