diff --git a/scripts/install b/scripts/install index c5ea928..a0fc42a 100644 --- a/scripts/install +++ b/scripts/install @@ -144,7 +144,7 @@ ynh_add_nginx_config # Set right permissions for curl install -chown -R "$app":"app" "$datadir" +chown -R "$app":"$app" "$datadir" # Reload Nginx systemctl reload nginx diff --git a/scripts/restore b/scripts/restore index 738c34a..2092119 100644 --- a/scripts/restore +++ b/scripts/restore @@ -81,7 +81,7 @@ ynh_system_user_create "$app" # Set right permissions datadir="/home/yunohost.app/${app}/storage" -chown -R "$app":"app" "$datadir" +chown -R "$app":"$app" "$datadir" #================================================= # SPECIFIC RESTORATION @@ -133,7 +133,7 @@ ynh_restore_file "/etc/logrotate.d/$app" (cd "$final_path" && yarn install --production --pure-lockfile) # Set right permissions for curl install -chown -R "$app":"app" "$datadir" +chown -R "$app":"$app" "$datadir" #================================================= # GENERIC FINALIZATION