From 7a360886e5c85328babfa43e7cc99a754673f807 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 21 Nov 2021 12:57:01 +0100 Subject: [PATCH] Fix --- scripts/install | 10 ---------- scripts/upgrade | 3 +-- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index ee1eef8..9aa789a 100644 --- a/scripts/install +++ b/scripts/install @@ -72,8 +72,6 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= ynh_script_progression --message="Installing dependencies..." --weight=6 -ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies - ynh_install_nodejs --nodejs_version=$nodejs_version if [ "$export" = "abiword" ]; then @@ -90,14 +88,6 @@ ynh_script_progression --message="Configuring system user..." --weight=4 # Create a system user ynh_system_user_create --username=$app --home_dir=$final_path -#================================================= -# CREATE DEDICATED USER -#================================================= -ynh_script_progression --message="Configuring system user..." --weight=4 - -# Create a system user -ynh_system_user_create --username=$app --home_dir=$final_path - #================================================= # CREATE A POSTQRESQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index deb5258..443aaf6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -121,14 +121,13 @@ then pushd "$final_path" ynh_use_nodejs git pull origin - ynh_exec_as $app env "$ynh_node_load_PATH" src/bin/run.sh + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH src/bin/run.sh popd fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -chmod 400 $final_path/credentials.json #================================================= # SETUP LOGROTATE