Browse Source

Squashing service_type bug

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

+ 2 - 2
installJRMC

@@ -900,6 +900,8 @@ setServiceVars() {
     declare service_user_dir="$USER_HOME/.config/systemd/user"
     declare service_type="${SERVICE_TYPE:-'system'}"
 
+    echo "service_type: $service_type, SERVICE_TYPE: $SERVICE_TYPE"
+
     if [[ "$USER" == "root" && "$service_type" == "user" ]]; then
         err "Trying to install user service as root"
         err "Use --service-type service and/or execute installJRMC as non-root user"
@@ -924,8 +926,6 @@ setServiceVars() {
         systemctl_is_active(){ sudo systemctl is-active -q "$@"; }
     fi
 
-    systemctl_reload_cmd && echo "YES!!!!"
-
     [[ ! -d "$service_dir" ]] && sudo -u "$EXEC_USER" mkdir -p "$service_dir"
 
     if [[ "$USER" == "root" || "$service_type" == "user" ]]; then