merge-requests/1/head
Esteban Mackay Q 2 years ago
parent 374b851df8
commit ce939c5349

@ -11,7 +11,7 @@ cd /
###################################################################################################################### ######################################################################################################################
# Cronedit # Cronedit
###################################################################################################################### ######################################################################################################################
cat > /usr/local/bin/cronedit.sh <<- "EOF" sudo cat > /usr/local/bin/cronedit.sh <<- "EOF"
#!/bin/bash #!/bin/bash
cronjob_editor () { cronjob_editor () {
# usage: cronjob_editor '<interval>' '<command>' <add|remove> # usage: cronjob_editor '<interval>' '<command>' <add|remove>
@ -530,7 +530,7 @@ cp -r /opt/FDMR-Monitor/html/* /var/www/fdmr/
sudo chown www-data:www-data /var/www/fdmr/ -R sudo chown www-data:www-data /var/www/fdmr/ -R
cp /opt/FDMR-Monitor/utils/logrotate/fdmr_mon /etc/logrotate.d/ 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"
<fieldset class="big"> <fieldset class="big">
<legend><b><font color="#000">&nbsp;.: Server Activity :.&nbsp;</font></b></legend> <legend><b><font color="#000">&nbsp;.: Server Activity :.&nbsp;</font></b></legend>
@ -809,7 +809,7 @@ WantedBy=multi-user.target
EOF EOF
# #
cat > /lib/systemd/system/http.server-fdmr.service <<- "EOF" sudo cat > /lib/systemd/system/http.server-fdmr.service <<- "EOF"
[Unit] [Unit]
Description=PHP http.server.fdmr Description=PHP http.server.fdmr
After=network.target After=network.target
@ -826,7 +826,7 @@ WantedBy=multi-user.target
EOF EOF
# #
cat > /lib/systemd/system/fdmr_mon.service <<- "EOF" sudo cat > /lib/systemd/system/fdmr_mon.service <<- "EOF"
[Unit] [Unit]
Description=FDMR Monitor Description=FDMR Monitor
# To make the network-online.target available # To make the network-online.target available
@ -863,7 +863,7 @@ if [ -f "/opt/wdp" ]
then then
echo "found file" echo "found file"
else else
cat > /opt/wdp <<- "EOFX" sudo cat > /opt/wdp <<- "EOFX"
######################################### #########################################
# Select number port, FreeDMR Dashboard # # Select number port, FreeDMR Dashboard #
######################################### #########################################
@ -943,7 +943,7 @@ cd /opt/FDMR-Monitor2
#python3 mon_db.py --create #python3 mon_db.py --create
#python3 mon_db.py --update #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] [Unit]
Description=PHP http.server.fdmr2 Description=PHP http.server.fdmr2
After=network.target After=network.target

@ -14,7 +14,7 @@ if [ -f "/opt/wdp" ]
then then
echo "found file" echo "found file"
else else
cat > /opt/wdp <<- "EOFX" sudo cat > /opt/wdp <<- "EOFX"
#!/bin/bash #!/bin/bash
######################################### #########################################
# Select number port, FreeDMR Dashboard # # Select number port, FreeDMR Dashboard #
@ -1102,7 +1102,7 @@ fi
# service update # service update
############################################################ ############################################################
cat > /lib/systemd/system/http.server-fdmr2.service <<- "EOFH" sudo cat > /lib/systemd/system/http.server-fdmr2.service <<- "EOFH"
[Unit] [Unit]
Description=PHP http.server.fdmr2 Description=PHP http.server.fdmr2
After=network.target After=network.target
@ -1320,7 +1320,7 @@ EOFB2
###################################################################################################################### ######################################################################################################################
# Cronedit # Cronedit
###################################################################################################################### ######################################################################################################################
cat > /usr/local/bin/cronedit.sh <<- "EOFC1" sudo cat > /usr/local/bin/cronedit.sh <<- "EOFC1"
#!/bin/bash #!/bin/bash
cronjob_editor () { cronjob_editor () {
# usage: cronjob_editor '<interval>' '<command>' <add|remove> # usage: cronjob_editor '<interval>' '<command>' <add|remove>

Loading…
Cancel
Save

Powered by TurnKey Linux.