1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/elabftw_ynh.git synced 2024-09-03 18:26:23 +02:00
This commit is contained in:
ericgaspar 2021-11-20 09:46:33 +01:00
parent 431834006d
commit fc0929d9fd
5 changed files with 5 additions and 6 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
.github/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -138,11 +138,11 @@ pushd "$final_path"
ynh_exec_warn_less ynh_exec_as $app php$phpversion composer.phar install --prefer-dist --no-progress --no-dev
ynh_script_progression --message="Yarn install..."
ynh_exec_warn_less npm install brotli
ynh_exec_warn_less yarn install --pure-lockfile --prod
ynh_exec_warn_less yarn run buildall
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npm install brotli
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_secure_remove node_modules
ynh_exec_warn_less yarn cache clean
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean
secret_key=$(ynh_string_random --length=137)
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key

View file

@ -34,8 +34,6 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "

View file

@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
secret_key=$(ynh_app_setting_get --app=$app --key=secret_key)