mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
directive added when upgrading from 1.2.8 to correct moving db files
This commit is contained in:
parent
01179601d3
commit
7138dc6bcb
1 changed files with 4 additions and 3 deletions
|
@ -98,9 +98,6 @@ if [ ! -d "$data_dir/data" ]; then
|
|||
chown $app:www-data "$data_dir/data"
|
||||
fi
|
||||
|
||||
if [ ! -f "$install_dir/data/association.sqlite" ]; then
|
||||
mv "$install_dir/data/association.*" "$data_dir/data/"
|
||||
fi
|
||||
|
||||
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=5
|
||||
|
@ -110,6 +107,10 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
|||
chown $app:$app "$data_dir/data/config.local.user.php"
|
||||
fi
|
||||
|
||||
if [ ! -f "$install_dir/data/association.sqlite" ]; then
|
||||
mv "$install_dir/data/association.*" "$data_dir/data/"
|
||||
ynh_secure_remove "$install_dir/data/association.*"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
Loading…
Add table
Reference in a new issue