From 2c5f5eb73125b5556679da391f3a9fef13ace119 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 17 May 2022 14:04:32 +0200 Subject: [PATCH] Update install --- scripts/install | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 4a75d05..40a06fb 100644 --- a/scripts/install +++ b/scripts/install @@ -131,22 +131,22 @@ ynh_install_composer --install_args="--no-dev" ynh_script_progression --message="Installing $app..." --weight=30 pushd "$final_path" + ynh_composer_exec --commands="install --prefer-dist --no-cache --no-progress --no-dev -a" + #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 - ynh_script_progression --message="Install start..." ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php" - #sed -i '' 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' "$final_path/conf/sql/db.sql" ynh_exec_as $app php$phpversion bin/install start -q popd -#ynh_script_progression --message="Configuring LDAP and emails..." --weight=2 -#ynh_add_config --template="../conf/sql.template" --destination="../conf/sql" -#ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name < ../conf/sql +ynh_script_progression --message="Configuring LDAP and emails..." --weight=2 +ynh_add_config --template="../conf/sql.template" --destination="../conf/sql" +ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name < ../conf/sql #================================================= # GENERIC FINALIZATION