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:
parent
511ad72956
commit
4e5d6b455b
2 changed files with 2 additions and 4 deletions
|
@ -74,10 +74,6 @@ ynh_mysql_connect_as $db_name $db_pwd $db_name < ./db.sql
|
||||||
|
|
||||||
ynh_restore_file "$final_path"
|
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
|
# RECREATE THE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -74,6 +74,8 @@ tmpdir="$(mktemp -d)"
|
||||||
# Backup the config file in the temp dir
|
# Backup the config file in the temp dir
|
||||||
mkdir -p "$tmpdir/storage/upload"
|
mkdir -p "$tmpdir/storage/upload"
|
||||||
mkdir -p "$tmpdir/storage/export"
|
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/.env" "$tmpdir/.env"
|
||||||
cp -a "$final_path/storage/upload/*" "$tmpdir/storage/upload/"
|
cp -a "$final_path/storage/upload/*" "$tmpdir/storage/upload/"
|
||||||
cp -a "$final_path/storage/export/*" "$tmpdir/storage/export/"
|
cp -a "$final_path/storage/export/*" "$tmpdir/storage/export/"
|
||||||
|
|
Loading…
Reference in a new issue