1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/horde_ynh.git synced 2024-09-03 19:16:08 +02:00

Update scripts/_common.sh

Simplify some code

Co-authored-by: Alexandre Aubin
<4533074+alexAubin@users.noreply.github.com>
This commit is contained in:
Salamandar 2024-02-28 11:05:45 +01:00 committed by Félix Piédallu
parent 99f1043792
commit 320ece3736

View file

@ -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() {