Skip to content
Permalink
Browse files

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

  • Loading branch information
nolanl committed Apr 10, 2019
1 parent 02a6e2a commit dfe6ad1eb7f53e37579905a702735673442ee143
Showing with 2 additions and 2 deletions.
  1. +2 −2 roundcube/start.sh
@@ -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

0 comments on commit dfe6ad1

Please sign in to comment.
You can’t perform that action at this time.