From 8f8852c3584796b404a3d4e21ee555421e984bed Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Mon, 21 May 2018 10:24:05 +0200 Subject: [PATCH] Fix chown typo --- scripts/install | 2 +- scripts/restore | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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