Commit dfe6ad1e authored by Nolan's avatar Nolan

Fix bug when base64 key has a '/' character.

parent 02a6e2a8
......@@ -13,8 +13,8 @@ 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 '=' | cut -c1-24`
sed -i "s/XXXDESKEYXXX/$KEY/g" /etc/roundcube/config.inc.php
KEY=`dd if=/dev/urandom bs=1024 count=1 | base64 -w 0 | tr -d '=' | td -d| cut -c1-24`
sed -i "s|XXXDESKEYXXX|$KEY|g" /etc/roundcube/config.inc.php
fi
exec apache2ctl -DFOREGROUND
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