1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/elabftw_ynh.git synced 2024-09-03 18:26:23 +02:00

Update install

This commit is contained in:
ericgaspar 2022-05-17 14:04:32 +02:00
parent e8fba0d52b
commit 2c5f5eb731
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -131,22 +131,22 @@ ynh_install_composer --install_args="--no-dev"
ynh_script_progression --message="Installing $app..." --weight=30 ynh_script_progression --message="Installing $app..." --weight=30
pushd "$final_path" 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 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 install --pure-lockfile --prod
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run buildall 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_secure_remove node_modules
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 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" 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 ynh_exec_as $app php$phpversion bin/install start -q
popd popd
#ynh_script_progression --message="Configuring LDAP and emails..." --weight=2 ynh_script_progression --message="Configuring LDAP and emails..." --weight=2
#ynh_add_config --template="../conf/sql.template" --destination="../conf/sql" 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_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name < ../conf/sql
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION