27 lines
1.2 KiB
Text
27 lines
1.2 KiB
Text
From 57b161111f42bbcf3b83d65bf3ad7c017335991a Mon Sep 17 00:00:00 2001
|
|
From: Aleksander Machniak <alec@alec.pl>
|
|
Date: Sat, 8 Jul 2023 09:08:50 +0200
|
|
Subject: [PATCH] Fix bug where installto.sh/update.sh scripts were removing
|
|
some essential options from the config file (#9051)
|
|
|
|
Index: bin/update.sh
|
|
--- bin/update.sh.orig
|
|
+++ bin/update.sh
|
|
@@ -88,7 +88,7 @@ if ($RCI->configured) {
|
|
if (!empty($opts['accept']) || strtolower($input) == 'y') {
|
|
$error = $written = false;
|
|
|
|
- echo ". backing up the current config file(s)...\n";
|
|
+ echo "- backing up the current config file(s)...\n";
|
|
|
|
foreach (['config', 'main', 'db'] as $file) {
|
|
if (file_exists(RCMAIL_CONFIG_DIR . '/' . $file . '.inc.php')) {
|
|
@@ -100,7 +100,7 @@ if ($RCI->configured) {
|
|
|
|
if (!$error) {
|
|
$RCI->merge_config();
|
|
- echo ". writing " . RCMAIL_CONFIG_DIR . "/config.inc.php...\n";
|
|
+ echo "- writing " . RCMAIL_CONFIG_DIR . "/config.inc.php...\n";
|
|
$written = $RCI->save_configfile($RCI->create_config(false));
|
|
}
|
|
|