|
|
|
|
@ -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 '<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
|
|
|
|
|
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">
|
|
|
|
|
<legend><b><font color="#000"> .: Server Activity :. </font></b></legend>
|
|
|
|
|
@ -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
|
|
|
|
|
|