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 #=================================================