diff --git a/install.sh b/install.sh index 40ad38c..9029702 100644 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ cd / ###################################################################################################################### # Cronedit ###################################################################################################################### -cat > /usr/local/bin/cronedit.sh <<- "EOF" +sudo cat > /usr/local/bin/cronedit.sh <<- "EOF" #!/bin/bash cronjob_editor () { # usage: cronjob_editor '' '' @@ -530,7 +530,7 @@ cp -r /opt/FDMR-Monitor/html/* /var/www/fdmr/ sudo chown www-data:www-data /var/www/fdmr/ -R cp /opt/FDMR-Monitor/utils/logrotate/fdmr_mon /etc/logrotate.d/ -cat > /opt/FDMR-Monitor/templates/main_table.html <<- "EOF" +sudo cat > /opt/FDMR-Monitor/templates/main_table.html <<- "EOF"
 .: Server Activity :.  @@ -809,7 +809,7 @@ WantedBy=multi-user.target EOF # -cat > /lib/systemd/system/http.server-fdmr.service <<- "EOF" +sudo cat > /lib/systemd/system/http.server-fdmr.service <<- "EOF" [Unit] Description=PHP http.server.fdmr After=network.target @@ -826,7 +826,7 @@ WantedBy=multi-user.target EOF # -cat > /lib/systemd/system/fdmr_mon.service <<- "EOF" +sudo cat > /lib/systemd/system/fdmr_mon.service <<- "EOF" [Unit] Description=FDMR Monitor # To make the network-online.target available @@ -863,7 +863,7 @@ if [ -f "/opt/wdp" ] then echo "found file" else -cat > /opt/wdp <<- "EOFX" +sudo cat > /opt/wdp <<- "EOFX" ######################################### # Select number port, FreeDMR Dashboard # ######################################### @@ -943,7 +943,7 @@ cd /opt/FDMR-Monitor2 #python3 mon_db.py --create #python3 mon_db.py --update -cat > /lib/systemd/system/http.server-fdmr2.service <<- "EOF" +sudo cat > /lib/systemd/system/http.server-fdmr2.service <<- "EOF" [Unit] Description=PHP http.server.fdmr2 After=network.target diff --git a/update.sh b/update.sh index 375f346..8dc07cb 100644 --- a/update.sh +++ b/update.sh @@ -14,7 +14,7 @@ if [ -f "/opt/wdp" ] then echo "found file" else -cat > /opt/wdp <<- "EOFX" +sudo cat > /opt/wdp <<- "EOFX" #!/bin/bash ######################################### # Select number port, FreeDMR Dashboard # @@ -1102,7 +1102,7 @@ fi # service update ############################################################ -cat > /lib/systemd/system/http.server-fdmr2.service <<- "EOFH" +sudo cat > /lib/systemd/system/http.server-fdmr2.service <<- "EOFH" [Unit] Description=PHP http.server.fdmr2 After=network.target @@ -1320,7 +1320,7 @@ EOFB2 ###################################################################################################################### # Cronedit ###################################################################################################################### -cat > /usr/local/bin/cronedit.sh <<- "EOFC1" +sudo cat > /usr/local/bin/cronedit.sh <<- "EOFC1" #!/bin/bash cronjob_editor () { # usage: cronjob_editor '' ''