1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
Rafi594 2019-10-25 21:40:17 +02:00
parent 88780bb201
commit c732edb486
2 changed files with 9 additions and 8 deletions

View file

@ -61,14 +61,6 @@ ynh_script_progression --message="Recreating the dedicated system user..." --tim
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app
#=================================================
# RESTORE USER RIGHTS
#=================================================
# Restore permissions to app files
chown -R $app: $final_path
chown -R $app: $config_path
#=================================================
# SPECIFIC RESTORATION
#=================================================
@ -112,6 +104,14 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
# RESTORE USER RIGHTS
#=================================================
# Restore permissions to app files
chown -R $app: $final_path
chown -R $app: $config_path
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -116,6 +116,7 @@ ynh_cron_upgrade_node
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_use_nodejs
pushd $final_path
npm install --unsafe-perm