mirror of
https://github.com/YunoHost-Apps/openproject_ynh.git
synced 2024-09-03 19:56:10 +02:00
hotfix typo +error exec_as YEP 1.6
This commit is contained in:
parent
899fe22f91
commit
0e34c2ea6a
3 changed files with 3 additions and 3 deletions
|
@ -11,6 +11,7 @@ pkg_dependencies="zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
exec_as() {
|
exec_as() {
|
||||||
|
echo "exec_as $@"
|
||||||
local USER=$1
|
local USER=$1
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,6 @@ RAILS_ENV="production"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chown $app: $_homedir/.profile
|
chown $app: $_homedir/.profile
|
||||||
exec_as $app bash $_homedir/.profile
|
|
||||||
|
|
||||||
ynh_script_progression --message="Setting up Ruby and Node..." --weight=1
|
ynh_script_progression --message="Setting up Ruby and Node..." --weight=1
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# STOP AND REMOVE SERVICE
|
# 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
|
# Remove the dedicated systemd config
|
||||||
ynh_remove_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.
|
# If DBMS is empty, remove it.
|
||||||
_remaining_databases=$(sudo -iu postgres psql -l | grep "^(" | sed "s/^(\([^ ]*\) .*/\1/")
|
_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
|
# REMOVE DEPENDENCIES
|
||||||
|
|
Loading…
Add table
Reference in a new issue