1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

Fixed upgrade and restore

This commit is contained in:
anmol26s 2018-06-17 19:28:36 +05:30
parent 511ad72956
commit 4e5d6b455b
2 changed files with 2 additions and 4 deletions

View file

@ -74,10 +74,6 @@ ynh_mysql_connect_as $db_name $db_pwd $db_name < ./db.sql
ynh_restore_file "$final_path"
exec_composer "$final_path" update --quiet --no-scripts --no-dev
exec_composer "$final_path" update --quiet --no-dev
#=================================================
# RECREATE THE DEDICATED USER
#=================================================

View file

@ -74,6 +74,8 @@ tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
mkdir -p "$tmpdir/storage/upload"
mkdir -p "$tmpdir/storage/export"
mkdir -p "$final_path/storage/upload"
mkdir -p "$final_path/storage/export"
cp -a "$final_path/.env" "$tmpdir/.env"
cp -a "$final_path/storage/upload/*" "$tmpdir/storage/upload/"
cp -a "$final_path/storage/export/*" "$tmpdir/storage/export/"