1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galette_ynh.git synced 2024-09-03 18:36:28 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-11-11 14:38:57 +01:00
parent ab86edf833
commit 42477aabdb

View file

@ -30,19 +30,19 @@ then
ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
mv "$install_dir" "$install_dir.old"
#mv "$install_dir" "$install_dir.old"
ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir" --keep="galette/config/config.inc.php galette/data galette/plugins"
# when running automatic tests, there is no config.inc.php
if [ -e "$install_dir.old/galette/config/config.inc.php" ]; then
cp "$install_dir.old/galette/config/config.inc.php" "$install_dir/galette/config/config.inc.php"
cp -r "$install_dir.old/galette/data" "$install_dir/galette/data"
cp -r "$install_dir.old/galette/plugins" "$install_dir/galette/plugins"
fi
#if [ -e "$install_dir.old/galette/config/config.inc.php" ]; then
# cp "$install_dir.old/galette/config/config.inc.php" "$install_dir/galette/config/config.inc.php"
# cp -r "$install_dir.old/galette/data" "$install_dir/galette/data"
# cp -r "$install_dir.old/galette/plugins" "$install_dir/galette/plugins"
#fi
# delete temp directory
#REMOVEME? ynh_secure_remove "$install_dir.old"
#ynh_secure_remove "$install_dir.old"
fi
chmod -R o-rwx "$install_dir"