Update mm-scripts.sh

This commit is contained in:
2023-04-27 20:26:07 -05:00
parent 463b9a5ea1
commit 725ec34402

View File

@@ -356,7 +356,8 @@ MMSTART(){
msg="${mmsv} Services"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ] && ([ ! -f ${MMFOLDER}/mm.plexmount.fail ] || [ -f ${MMFOLDER}/mm.plexmount.fail2 ]); then
if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ] && [ ! -f ${MMFOLDER}/mm.plexmount.fail ]; then
echo 'yes'
for srvc in "${SERVICES_CHECK[@]}"; do
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc}
done
@@ -537,6 +538,7 @@ MMSTOP(){
MMSTATUS(){
statusArray=(wireguard)
statusArray+=(${SERVICES_CHECK[@]})
echo $statusArray
echo
for srvc in "${statusArray[@]}"; do
c=0; spc=''