Skip to content

Commit 32939e2

Browse files
committed
Made my fix less hacky for future installs.
1 parent d1f3308 commit 32939e2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

install/deb/roundcube/main.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
// this key is used to encrypt the users imap password which is stored
267267
// in the session record (and the client cookie if remember password is enabled).
268268
// please provide a string of exactly 24 chars.
269-
$rcmail_config['des_key'] = 'vtIOjLZo9kffJoqzpSbm5r1r';
269+
$rcmail_config['des_key'] = '%des_key%';
270270

271271
// Automatically add this domain to user names for login
272272
// Only for IMAP servers that require full e-mail addresses for login

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,8 +1542,8 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15421542
mysql -e "CREATE DATABASE roundcube"
15431543
mysql -e "GRANT ALL ON roundcube.*
15441544
TO roundcube@localhost IDENTIFIED BY '$r'"
1545-
sed -i "s/vtIOjLZo9kffJoqzpSbm5r1r/$rcDesKey/g" /etc/roundcube/config.inc.php
15461545
sed -i "s/%password%/$r/g" /etc/roundcube/debian-db-roundcube.php
1546+
sed -i "s/%des_key%/$rcDesKey/g" /etc/roundcube/config.inc.php
15471547
sed -i "s/localhost/$servername/g" /etc/roundcube/plugins/password/config.inc.php
15481548
mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
15491549

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
14921492
mysql -e "GRANT ALL ON roundcube.*
14931493
TO roundcube@localhost IDENTIFIED BY '$r'"
14941494
sed -i "s/%password%/$r/g" /etc/roundcube/debian-db-roundcube.php
1495-
sed -i "s/vtIOjLZo9kffJoqzpSbm5r1r/$rcDesKey/g" /etc/roundcube/config.inc.php
1495+
sed -i "s/%des_key%/$rcDesKey/g" /etc/roundcube/config.inc.php
14961496
sed -i "s/localhost/$servername/g" /etc/roundcube/plugins/password/config.inc.php
14971497
mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
14981498

0 commit comments

Comments
 (0)