diff --git a/menu/menu-mmdvm b/menu/menu-mmdvm index 24d77bc..7aaaf63 100644 --- a/menu/menu-mmdvm +++ b/menu/menu-mmdvm @@ -77,7 +77,11 @@ then fi ;; 6) -sudo systemctl stop mmdvmh.service && sudo systemctl disable mmdvmh.service && systemctl stop ysf2dmrgw.service && sudo systemctl stop dmrgw.service && sudo systemctl stop dmrid-mmdvm.service && sudo systemctl disable dmrid-mmdvm.service && cronedit.sh '0 3 * * *' 'sh /opt/MMDVMHost/DMRIDUpdate.sh' remove && sudo rm /var/log/mmdvmh/MMDVMH.* && cronedit.sh '* */24 * * *' 'sh /opt/data-file.sh' remove ;; +if systemctl status ysf2dmr.service | grep disable >/dev/null 2>&1 +then + cronedit.sh '* */24 * * *' 'sh /opt/data-file.sh' remove +fi +sudo systemctl stop mmdvmh.service && sudo systemctl disable mmdvmh.service && systemctl stop ysf2dmrgw.service && sudo systemctl stop dmrgw.service ;; 7) sudo systemctl restart logtailer-mmdvmh.service && sudo systemctl enable logtailer-mmdvmh.service && sudo systemctl restart http.server-mmdvmh.service && sudo systemctl enable http.server-mmdvmh.service && cronedit.sh '* */24 * * *' 'sh /bin/tg-name.sh' add ;; 8)