Update mm-scripts.sh
This commit is contained in:
@@ -357,7 +357,6 @@ MMSTART(){
|
|||||||
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||||
|
|
||||||
if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ] && [ ! -f ${MMFOLDER}/mm.plexmount.fail ]; then
|
if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ] && [ ! -f ${MMFOLDER}/mm.plexmount.fail ]; then
|
||||||
echo 'yes'
|
|
||||||
for srvc in "${SERVICES_CHECK[@]}"; do
|
for srvc in "${SERVICES_CHECK[@]}"; do
|
||||||
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc}
|
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc}
|
||||||
done
|
done
|
||||||
@@ -538,7 +537,6 @@ MMSTOP(){
|
|||||||
MMSTATUS(){
|
MMSTATUS(){
|
||||||
statusArray=(wireguard)
|
statusArray=(wireguard)
|
||||||
statusArray+=(${SERVICES_CHECK[@]})
|
statusArray+=(${SERVICES_CHECK[@]})
|
||||||
echo $statusArray
|
|
||||||
echo
|
echo
|
||||||
for srvc in "${statusArray[@]}"; do
|
for srvc in "${statusArray[@]}"; do
|
||||||
c=0; spc=''
|
c=0; spc=''
|
||||||
|
|||||||
Reference in New Issue
Block a user