From 320ece3736b465ca21fd2651b40ab1784b4923d5 Mon Sep 17 00:00:00 2001 From: Salamandar <6552989+Salamandar@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:05:45 +0100 Subject: [PATCH] Update scripts/_common.sh Simplify some code Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> --- scripts/_common.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 430ca09..3727690 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -17,24 +17,11 @@ patch_app() { } config_horde() { - ynh_backup_if_checksum_is_different --file "$install_dir/horde/config/conf.php" - ynh_backup_if_checksum_is_different --file "$install_dir/horde/imp/config/conf.php" - ynh_backup_if_checksum_is_different --file "$install_dir/horde/config/registry.local.php" - ynh_backup_if_checksum_is_different --file "$install_dir/horde/gollem/config/backends.local.php" - ynh_backup_if_checksum_is_different --file "$install_dir/horde/ingo/config/backends.local.php" - - ynh_add_config --template="horde_conf.php" --destination="$install_dir/horde/config/conf.php" ynh_add_config --template="/horde_imp_conf.php" --destination="$install_dir/horde/imp/config/conf.php" ynh_add_config --template="horde_registry.php" --destination="$install_dir/horde/config/registry.local.php" ynh_add_config --template="gollem_backends.php" --destination="$install_dir/horde/gollem/config/backends.local.php" ynh_add_config --template="ingo_backends.php" --destination="$install_dir/horde/ingo/config/backends.local.php" - - ynh_store_file_checksum --file "$install_dir/horde/config/conf.php" - ynh_store_file_checksum --file "$install_dir/horde/imp/config/conf.php" - ynh_store_file_checksum --file "$install_dir/horde/config/registry.local.php" - ynh_store_file_checksum --file "$install_dir/horde/gollem/config/backends.local.php" - ynh_store_file_checksum --file "$install_dir/horde/ingo/config/backends.local.php" } config_nginx() {