Browse Source

Make less noisy

bryan 3 years ago
parent
commit
292a5c5472
1 changed files with 2 additions and 2 deletions
  1. 2 2
      installJRMC

+ 2 - 2
installJRMC

@@ -1154,10 +1154,10 @@ uninstall() {
     echo "Stopping and removing all associated Media Center services"
     echo "Stopping and removing all associated Media Center services"
     for _service in $(compgen -A "function" "service"); do 
     for _service in $(compgen -A "function" "service"); do 
         setServiceVars "$_service"
         setServiceVars "$_service"
-        if systemctl is-active "$_timer_name" || systemctl is-enabled "$_timer_name"; then 
+        if systemctl is-active -q "$_timer_name" || systemctl is-enabled -q "$_timer_name"; then 
             systemctl_disable "$_timer_name"
             systemctl_disable "$_timer_name"
         fi
         fi
-        if systemctl is-active "$_service_name" || systemctl is-enabled "$_service_name"; then 
+        if systemctl is-active -q "$_service_name" || systemctl is-enabled -q "$_service_name"; then 
             systemctl_disable "$_service_name"
             systemctl_disable "$_service_name"
         fi
         fi
         [[ -f "$_service_fname" ]] && rm_cmd "$_service_fname"
         [[ -f "$_service_fname" ]] && rm_cmd "$_service_fname"