Skip to content
Permalink
Browse files

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

  • Loading branch information
nolanl committed May 12, 2019
1 parent a792bc5 commit e80083108ee2732bbd3268483a359da271c3ed5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 roundcube/start.sh
@@ -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

0 comments on commit e800831

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