From 10e092c9b46c55047b7d132cfcb326843642b887 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 7 Jan 2024 14:41:35 +0100 Subject: [PATCH] No need for www-data to access install_dir --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index e41e883..e7142d6 100755 --- a/scripts/install +++ b/scripts/install @@ -21,7 +21,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +chown -R $app:$app "$install_dir" chmod +x $install_dir/nocodb #================================================= diff --git a/scripts/restore b/scripts/restore index 4915f24..90740b3 100755 --- a/scripts/restore +++ b/scripts/restore @@ -18,7 +18,7 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +chown -R $app:$app "$install_dir" chmod +x $install_dir/nocodb #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index abe1a4a..3f2cbf0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -37,7 +37,7 @@ then fi chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +chown -R $app:$app "$install_dir" chmod +x $install_dir/nocodb #=================================================