diff --git a/scripts/install b/scripts/install index 04e908a..06e5fe8 100644 --- a/scripts/install +++ b/scripts/install @@ -122,15 +122,15 @@ chown -R $app:www-data "$final_path" chown -R $app: $final_path -pushd $final_path +#pushd $final_path #ynh_exec_as $app env $ynh_node_load_PATH - ynh_exec_as $app env $ynh_node_load_PATH ./nodebb setup -l > $install_log + ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup -l > $install_log #npm install nodebb-plugin-dbsearch --save-prod #./nodebb build -l #ynh_exec_as $app ./nodebb setup -l > $install_log #ynh_exec_as $app npm install nodebb-plugin-dbsearch --save-prod #ynh_exec_as $app ./nodebb build -l -popd +#popd #================================================= # NGINX CONFIGURATION diff --git a/scripts/remove b/scripts/remove index 777fda6..18fca17 100644 --- a/scripts/remove +++ b/scripts/remove @@ -98,4 +98,3 @@ ynh_system_user_delete --username=$app #================================================= ynh_script_progression --message="Removal of $app completed" --time --last - diff --git a/scripts/upgrade b/scripts/upgrade index 24174e5..a1e018c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -132,20 +132,6 @@ ynh_script_progression --message="Making sure dedicated system user exists..." - # Create a dedicated user (if not existing) ynh_system_user_create --username=$app -#================================================= -# PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading PHP-FPM configuration..." --time --weight=1 - -# Create a dedicated PHP-FPM config -ynh_add_fpm_config - -#================================================= -# SPECIFIC UPGRADE -#================================================= -# ... -#================================================= - #================================================= # SETUP SYSTEMD #================================================= @@ -181,14 +167,6 @@ ynh_add_config --template="some_config_file" --destination="$final_path/some_con # Set permissions on app files chown -R root: $final_path -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Upgrading logrotate configuration..." --time --weight=1 - -# Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate --non-append - #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= @@ -203,14 +181,6 @@ ynh_script_progression --message="Starting a systemd service..." --time --weight ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" -#================================================= -# UPGRADE FAIL2BAN -#================================================= -ynh_script_progression --message="Reconfiguring Fail2Ban..." --time --weight=1 - -# Create a dedicated Fail2Ban config -ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" - #================================================= # RELOAD NGINX #=================================================