]> git.donarmstrong.com Git - roundcube.git/blobdiff - debian/roundcube-core.postinst
Imported Debian patch 0.5.1+dfsg-4
[roundcube.git] / debian / roundcube-core.postinst
index 59f85f727ba009b087ba18dc6b201321ab2c2386..843a1859a9b38ea87fc4541bb1bacf1280a4112f 100644 (file)
@@ -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