X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=debian%2Froundcube-core.postinst;h=843a1859a9b38ea87fc4541bb1bacf1280a4112f;hb=ddec9214b8fc6ace0ed40104c007e374c4699b35;hp=59f85f727ba009b087ba18dc6b201321ab2c2386;hpb=f7740e98f54de40e5fc1de605c7881f07d04d978;p=roundcube.git diff --git a/debian/roundcube-core.postinst b/debian/roundcube-core.postinst index 59f85f7..843a185 100644 --- a/debian/roundcube-core.postinst +++ b/debian/roundcube-core.postinst @@ -101,9 +101,10 @@ EOF # Put hosts, language and key in main.inc.php cat /usr/share/roundcube/main.inc.php.dist | \ - sed -e "s+^\(\$rcmail_config\['default_host'\] = \)''\(;\)\$+\1${hosts}\2+" \ - -e "s+^\(\$rcmail_config\['des_key'\] = '\).*\(';\)\$+\1$deskey\2+" \ - -e "s+^\(\$rcmail_config\['language'\] = \).*\(;\)\$+\1'${language}'\2+" >> $CONFFILE.ucftmp + awk "/^.rcmail_config\['default_host'\] =/ {print \$1\" = ${hosts};\" ; next} + /^.rcmail_config\['des_key'\] =/ {print \$1\" = '${deskey}';\" ; next} + /^.rcmail_config\['language'\] =/ {print \$1\" = '${language}';\" ; next} + {print}" >> $CONFFILE.ucftmp ucf --debconf-ok $CONFFILE.ucftmp $CONFFILE chown root:www-data $CONFFILE