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 database and remove folder duplicated
This commit is contained in:
Robles Rodolphe 2023-09-12 21:50:09 +02:00 committed by GitHub
parent fb621f6dc4
commit 6a28cc87f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,6 +78,10 @@ ynh_add_config --template="config.local.php" --destination="$install_dir/config.
ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
# NOTE: Don't overwrite config.local.user.php
# 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
# Permissions on files and directories
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -94,6 +98,10 @@ 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"