From 65d865b9dac4b6d95e27726e1b1aca78247c2ba6 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 16 Sep 2023 12:05:58 +0200 Subject: [PATCH] Ensure proper permissions for building the app --- scripts/install | 4 ++++ scripts/upgrade | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index ca95e18..11a984d 100755 --- a/scripts/install +++ b/scripts/install @@ -24,6 +24,10 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:$app "$install_dir" + #================================================= # NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 3f3f680..f84c432 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,6 +39,10 @@ then ynh_setup_source --dest_dir="$install_dir" fi +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:$app "$install_dir" + #================================================= # NGINX CONFIGURATION #=================================================