From 6cdd885397236b0a38c7a29a1caddb1644748913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 17 Jan 2024 14:58:23 +0100 Subject: [PATCH] fix: delete checksum --- scripts/upgrade | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 910e3c8..075f28d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,14 +39,24 @@ ynh_script_progression --message="Updating configuration files..." file=__FILE__ dir=__DIR__ +ynh_backup_if_checksum_is_different --file="$install_dir/config.php" +ynh_backup_if_checksum_is_different --file="$install_dir/pheditor.php" + +# FIXME: is it required ? +ynh_delete_file_checksum --file="$install_dir/config.php" +ynh_delete_file_checksum --file="$install_dir/pheditor.php" + ynh_add_config --template="config.php" --destination="$install_dir/config.php" ynh_add_config --template="pheditor.php" --destination="$install_dir/pheditor.php" mkdir -p "$install_dir/templates/minimaxing/" +ynh_delete_file_checksum --file="$install_dir/templates/minimaxing/minimaxing.less" +ynh_delete_file_checksum --file="$install_dir/templates/minimaxing/minimaxing.css" ynh_add_config --template="minimaxing.less" --destination="$install_dir/templates/minimaxing/minimaxing.less" ynh_add_config --template="minimaxing.css" --destination="$install_dir/templates/minimaxing/minimaxing.css" mkdir -p "$install_dir/templates/mimoza/" +ynh_delete_file_checksum --file="$install_dir/templates/mimoza/mimoza.css" ynh_add_config --template="mimoza.css" --destination="$install_dir/templates/mimoza/mimoza.css" ynh_store_file_checksum --file="$install_dir/config.t2t"