diff --git a/scripts/_common.sh b/scripts/_common.sh index 8c33129..355baea 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,6 +11,7 @@ pkg_dependencies="zlib1g-dev build-essential libssl-dev libreadline-dev libyaml- # PERSONAL HELPERS #================================================= exec_as() { + echo "exec_as $@" local USER=$1 shift 1 diff --git a/scripts/install b/scripts/install index bcf5ab6..07dbcc3 100755 --- a/scripts/install +++ b/scripts/install @@ -93,7 +93,6 @@ RAILS_ENV="production" EOF chown $app: $_homedir/.profile -exec_as $app bash $_homedir/.profile ynh_script_progression --message="Setting up Ruby and Node..." --weight=1 diff --git a/scripts/remove b/scripts/remove index 4e4afc8..a76d58e 100755 --- a/scripts/remove +++ b/scripts/remove @@ -40,7 +40,7 @@ fi #================================================= # STOP AND REMOVE SERVICE #================================================= -/ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1 +ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1 # Remove the dedicated systemd config ynh_remove_systemd_config @@ -55,7 +55,7 @@ ynh_script_progression --message="Removing the PostgreSQL database..." --weight # If DBMS is empty, remove it. _remaining_databases=$(sudo -iu postgres psql -l | grep "^(" | sed "s/^(\([^ ]*\) .*/\1/") -[ $_remaining_databases -lt 3] && apt remove postgresql postgresq-contribl +[ $_remaining_databases -lt 3 ] && apt remove postgresql postgresq-contribl #================================================= # REMOVE DEPENDENCIES