1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/facilmap_ynh.git synced 2024-09-03 18:36:07 +02:00
This commit is contained in:
Éric Gaspar 2024-06-08 19:03:10 +02:00
parent 7225c274db
commit a778fbff70
3 changed files with 2 additions and 3 deletions

View file

@ -40,6 +40,7 @@ ynh_mysql_execute_as_root --database="$db_name" --sql="ALTER DATABASE $db_name C
ynh_script_progression --message="Building with NodeJS..." --weight=20
pushd "$install_dir"
ynh_use_nodejs
ynh_exec_warn_less env $ynh_node_load_PATH yarn install
ynh_exec_warn_less env $ynh_node_load_PATH yarn build
popd

View file

@ -24,8 +24,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
#=================================================
@ -33,7 +31,6 @@ chown -R "$app:www-data" "$install_dir"
#=================================================
ynh_script_progression --message="Restoring the MySQL database..." --weight=1
# echo "ALTER DATABASE $db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"
ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql
#=================================================

View file

@ -42,6 +42,7 @@ chown -R "$app:www-data" "$install_dir"
ynh_script_progression --message="Install $app..." --weight=20
pushd "$install_dir"
ynh_use_nodejs
ynh_exec_warn_less env $ynh_node_load_PATH yarn install
ynh_exec_warn_less env $ynh_node_load_PATH yarn build
popd