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