Skip to content

Commit d41a1c4

Browse files
author
Kristan Kenney
committed
Update Roundcube password plugin when changing hostname
1 parent 8c809b4 commit d41a1c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-change-sys-hostname

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ else
5151
# Debian/Ubuntu
5252
hostnamectl set-hostname $domain
5353
echo "$domain" > /etc/hostname
54+
55+
# Update Roundcube password plugin configuration
56+
if [ -d /etc/roundcube/ ]; then
57+
sed -i "/password_hestia_host/c\$rcmail_config['password_hestia_host'] = '$domain';" /etc/roundcube/plugins/password/config.inc.php
58+
fi
5459
fi
5560

5661
# Update ip helo for exim

0 commit comments

Comments
 (0)