From 03472b967c26a264cc5e0296fdf9e4d6367be465 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 11 Feb 2024 21:50:04 +0100 Subject: [PATCH] Fix permissions on $install_dir. --- scripts/install | 5 +++-- scripts/upgrade | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d6ca80d..329a0d9 100644 --- a/scripts/install +++ b/scripts/install @@ -54,7 +54,8 @@ ynh_script_progression --message="Setting up source files..." ynh_setup_source --dest_dir="$install_dir/build" chown -R $app:www-data "$install_dir" -chmod -R 755 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" #================================================= # INSTALL APP @@ -78,7 +79,7 @@ popd mkdir -p $install_dir/frontend mv $install_dir/build/frontend/target/dist/* $install_dir/frontend chown -R $app:www-data $install_dir/frontend -chmod -R 755 $install_dir/frontend +chmod -R 750 $install_dir/frontend ynh_script_progression --message="Building backend..." --weight=5 diff --git a/scripts/upgrade b/scripts/upgrade index bee1b89..7b6c620 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -58,8 +58,8 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir/build" + chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" - chmod -R 755 "$install_dir" ynh_script_progression --message="Building frontend..." --weight=5