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