1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodered_ynh.git synced 2024-09-03 19:46:25 +02:00

Improve NodeJS and fix restore

This commit is contained in:
tituspijean 2021-05-25 11:37:52 +02:00
parent 8e119b97f2
commit fdad61382d
4 changed files with 14 additions and 3 deletions

View file

@ -69,7 +69,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
# INSTALL NODEJS
#=================================================
ynh_install_nodejs $nodejs_version
ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE

View file

@ -41,6 +41,13 @@ ynh_script_progression --message="Stopping and removing the systemd service..."
# Remove the dedicated systemd config
ynh_remove_systemd_config
#=================================================
# REMOVE NODEJS
#=================================================
ynh_script_progression --message="Removing NodeJS version requirement..." --weight=4
ynh_remove_nodejs
#=================================================
# REMOVE APP MAIN DIR
#=================================================

View file

@ -67,13 +67,17 @@ ynh_system_user_create --username=$app --home_dir=$final_path
# Restore permissions on app files
chown -R $app: $final_path
# Create log directory and apply permissions
mkdir -p /var/log/$app
chown -R $app: /var/log/$app
#=================================================
# SPECIFIC RESTORATION
#=================================================
# INSTALL NODEJS
#=================================================
ynh_install_nodejs $nodejs_version
ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# RESTORE SYSTEMD

View file

@ -98,7 +98,7 @@ ynh_systemd_action --service_name=$app --action="stop"
# INSTALL NODEJS
#=================================================
ynh_install_nodejs $nodejs_version
ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE