1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

Update upgrade

try fix keep association.sqlite
This commit is contained in:
Robles Rodolphe 2023-09-12 21:56:42 +02:00 committed by GitHub
parent 6a28cc87f6
commit d5b51248c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config.local.user.php data" --full_replace=1
ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite config.local.user.php data"
fi
chmod -R o-rwx "$install_dir"
@ -98,15 +98,13 @@ chmod 660 "$install_dir/config.local.user.php"
#=================================================
ynh_script_progression --message="Finalise upgrade" --weight=1
# Move the database on folder data/data created and remove the folder
mv $install_dir/data/data/association.sqlite $install_dir/data/
ynh_secure_remove --file=$install_dir/data/data
ynh_local_curl "/admin/index.php"
sleep 5
ynh_local_curl "/index.php"
sleep 5
# Move the database on folder data/data created and remove the folder
ynh_secure_remove --file=$install_dir/data/data
#=================================================
# END OF SCRIPT
#=================================================