Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1381,7 +1381,7 @@ SERVICE(){
|
|||||||
fi
|
fi
|
||||||
checkhost=$(CHECK_HOST ${nip})
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
if [ "${checkhost}" != "false" ]; then
|
if [ "${checkhost}" != "false" ]; then
|
||||||
$NCMD systemctl $2 $1 > /dev/null 2>&1
|
#$NCMD systemctl $2 $1 > /dev/null 2>&1
|
||||||
if [ "${3}" != "q" ]; then
|
if [ "${3}" != "q" ]; then
|
||||||
if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then
|
if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then
|
||||||
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
||||||
@@ -1417,7 +1417,7 @@ SERVICE(){
|
|||||||
fi
|
fi
|
||||||
checkhost=$(CHECK_HOST ${nip})
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
if [ "${checkhost}" != "false" ]; then
|
if [ "${checkhost}" != "false" ]; then
|
||||||
$NCMD mount -a > /dev/null 2>&1
|
#$NCMD mount -a > /dev/null 2>&1
|
||||||
if [ "${3}" != "q" ]; then
|
if [ "${3}" != "q" ]; then
|
||||||
if [[ "${NCHOSTS}" == *"${nip}"* ]]; then
|
if [[ "${NCHOSTS}" == *"${nip}"* ]]; then
|
||||||
mntpath="/mnt/Nextcloud-Data"
|
mntpath="/mnt/Nextcloud-Data"
|
||||||
|
|||||||
Reference in New Issue
Block a user