Update nodemgmt-scripts.sh

This commit is contained in:
2023-06-03 17:50:09 -05:00
parent 087c05a401
commit 04bfc405ef

View File

@@ -626,7 +626,8 @@ SERVICE(){
fi
checkhost=$(CHECK_HOST ${nip})
if [ "${checkhost}" != "false" ]; then
$NCMD systemctl $2 $1 >/dev/null 2>&1
[ "${1}" = "pdnsadmin" ] && srva="pdnsadmin.socket pdnsadmin.service" && echo "both (pdnsadmin.socket pdnsadmin.service)" || srva=${1}
$NCMD systemctl ${2} ${srva} >/dev/null 2>&1
if [ "${3}" != "q" ]; then
if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then
echo -e "${idsCL[Green]}OK${idsCL[Default]}"