From 836b427dd7a1b641dba02c939e4122b8993d6230 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Mon, 24 Apr 2023 16:53:27 +0000 Subject: [PATCH] Update update.sh --- update.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/update.sh b/update.sh index f7ece10..05f16a0 100644 --- a/update.sh +++ b/update.sh @@ -827,7 +827,30 @@ cronjob_editor "$1" "$2" "$3" EOFC1 sudo chmod +x /usr/local/bin/cronedit.sh +if [ -f "/lib/systemd/system/http.server-fdmr.service" ]; +then + echo "" + #echo "found file" +else +cat > /lib/systemd/system/http.server-fdmr.service <<- "EOFH" +[Unit] +Description=PHP http.server.fdmr +After=network.target + +[Service] +User=root +#ExecStartPre=/bin/sleep 30 +# Modify for different other port +ExecStart=php -S 0.0.0.0:80 -t /var/www/fdmr/ + +[Install] +WantedBy=multi-user.target +EOFH + + +fi ########################################## End Update Files ############################################################## +sudo systemctl daemon-reload sudo chmod +x /opt/fdmr-update.sh sudo chmod +x /opt/monitor-update.sh sudo chmod +x /bin/menu*