Commit e8008310 authored by Nolan's avatar Nolan

Really fix bug when base64 key has a '/' in it.

parent a792bc59
......@@ -13,7 +13,7 @@ if [ ! -f /var/lib/dbconfig-common/sqlite3/roundcube/roundcube ]; then
fi
if grep -q XXXDESKEYXXX /etc/roundcube/config.inc.php; then
KEY=`dd if=/dev/urandom bs=1024 count=1 | base64 -w 0 | tr -d '=' | td -d| cut -c1-24`
KEY=`dd if=/dev/urandom bs=1024 count=1 | base64 -w 0 | tr -d '=' | cut -c1-24`
sed -i "s|XXXDESKEYXXX|$KEY|g" /etc/roundcube/config.inc.php
sed -i "s|XXXMAILDOMAINXXX|$DOMAINNAME|g" /etc/roundcube/config.inc.php
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment