Skip to content

Commit 92a1d00

Browse files
authored
Merge pull request hestiacp#2825 from jaapmarcus/fix/2820
Fix hestiacp#2820 and hestiacp#2824
2 parents fafbafd + 5270c73 commit 92a1d00

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

install/upgrade/versions/1.6.7.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,12 @@ upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'no'
1919
upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'no'
2020
upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'no'
2121
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'no'
22-
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
22+
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
23+
24+
if [ -f "/etc/roundcube/config.inc.php" ]; then
25+
sed -i "s/\$config\['auto_create_user'] = false;/\$config\['auto_create_user'] = true;/g" /etc/roundcube/config.inc.php
26+
sed -i "s/\$config\['prefer_html'] = false;/\$config\['prefer_html'] = true;/g" /etc/roundcube/config.inc.php
27+
28+
#For older installs
29+
sed -i "s/\$config\['default_host']/\$config\['imap_host']/g" /etc/roundcube/config.inc.php
30+
fi

0 commit comments

Comments
 (0)