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:
parent
6a28cc87f6
commit
d5b51248c0
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue