From d22074b2abe1ca950d4dcd4d2c34889a92965f39 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 17 May 2022 16:32:45 +0200 Subject: [PATCH] Update install --- scripts/install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 3b1df0b..9850d20 100644 --- a/scripts/install +++ b/scripts/install @@ -131,10 +131,11 @@ ynh_install_composer --install_args="--no-dev" ynh_script_progression --message="Installing $app..." --weight=30 pushd "$final_path" - #ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npm install --save https://github.com/foliojs/brotli.js/tarball/master ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --pure-lockfile --prod ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run buildall + ynh_composer_exec --commands="install --prefer-dist --no-cache --no-progress --no-dev -a" + ynh_secure_remove node_modules ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean @@ -156,9 +157,10 @@ popd ynh_script_progression --message="Securing files and directories..." --weight=1 mkdir -p $final_path/{cache,uploads} -chown $app:www-data $final_path/{cache,uploads} -chmod 750 -R "$final_path" -chmod 700 $final_path/{cache,uploads} + +chmod 755 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # SETUP SSOWAT