mirror of
https://github.com/YunoHost-Apps/thelounge_ynh.git
synced 2024-09-03 20:35:54 +02:00
Fixes
This commit is contained in:
parent
88780bb201
commit
c732edb486
2 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -116,6 +116,7 @@ ynh_cron_upgrade_node
|
|||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_use_nodejs
|
||||
pushd $final_path
|
||||
npm install --unsafe-perm
|
||||
|
||||
|
|
Loading…
Reference in a new issue