X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Froundcube-core.postinst;h=f033b52b7a2f89d41ef8fbfd0f37d2c986fdfe66;hb=5d44896a1af845d9b9fc0ab9e5b3708e94233496;hp=59f85f727ba009b087ba18dc6b201321ab2c2386;hpb=f7740e98f54de40e5fc1de605c7881f07d04d978;p=roundcube.git diff --git a/debian/roundcube-core.postinst b/debian/roundcube-core.postinst index 59f85f7..f033b52 100644 --- a/debian/roundcube-core.postinst +++ b/debian/roundcube-core.postinst @@ -40,7 +40,7 @@ case "$1" in configure) # We try to fix an incomplete upgrade (see #610725 and #613586) - if [ -n "$2" ] && dpkg --compare-versions "$2" le 0.5.1+dfsg-2; then + if [ -n "$2" ] && dpkg --compare-versions "$2" le 0.5.1+dfsg-5; then db_get roundcube/dbconfig-upgrade || true if [ x"$RET" = x"true" ]; then if [ x"$dbc_dbtype" = x"mysql" ]; then @@ -65,6 +65,7 @@ EOF cat <> $CONFFILE.ucftmp + cat /usr/share/roundcube/main.inc.php.dist | while read line; do + case "$line" in + "\$rcmail_config['default_host'] = "*) + printf "\$rcmail_config['default_host'] = %s;\n" "${hosts}" + ;; + "\$rcmail_config['des_key'] = "*) + printf "\$rcmail_config['des_key'] = '%s';\n" "${deskey}" + ;; + "\$rcmail_config['language'] = "*) + printf "\$rcmail_config['language'] = '%s';\n" "${language}" + ;; + *) + printf "%s\n" "$line" + ;; + esac + done >> $CONFFILE.ucftmp ucf --debconf-ok $CONFFILE.ucftmp $CONFFILE chown root:www-data $CONFFILE