diff --git a/scripts/install b/scripts/install index 0d839e4..5086fce 100644 --- a/scripts/install +++ b/scripts/install @@ -33,6 +33,8 @@ ynh_script_progression --message="Setting up source files..." --weight=4 # 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:www-data "$install_dir" #================================================= diff --git a/scripts/restore b/scripts/restore index b3cc02b..87ef668 100644 --- a/scripts/restore +++ b/scripts/restore @@ -17,6 +17,8 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" --not_mandatory +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index d1b4968..b2e2079 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -65,6 +65,8 @@ then ynh_setup_source --dest_dir="$install_dir" fi +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #=================================================