enable managesieve,password plugins in Roundcube
All checks were successful
/ build (push) Successful in 38s
All checks were successful
/ build (push) Successful in 38s
This commit is contained in:
parent
534ee6a1d2
commit
510be4f4be
1 changed files with 12 additions and 2 deletions
|
|
@ -5,8 +5,11 @@
|
||||||
#
|
#
|
||||||
# License: Creative Commons BY-NC-SA license
|
# License: Creative Commons BY-NC-SA license
|
||||||
#
|
#
|
||||||
# Version 0.1
|
# Version 0.1 / 2025-12-14
|
||||||
# 2025-12-14
|
# First release.
|
||||||
|
#
|
||||||
|
# Version 0.2 / 2025-12-28
|
||||||
|
# Enable plugins (managesieve, password) in Roundcube
|
||||||
#
|
#
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
|
@ -434,6 +437,13 @@ EOF
|
||||||
sed -i "s|^\s*\$config\['imap_host'\]\s*=.*|\$config['imap_host'] = 'tls://$FQDN:143';|" /etc/roundcube/config.inc.php
|
sed -i "s|^\s*\$config\['imap_host'\]\s*=.*|\$config['imap_host'] = 'tls://$FQDN:143';|" /etc/roundcube/config.inc.php
|
||||||
sed -i "s|^\s*\$config\['smtp_host'\]\s*=.*|\$config['smtp_host'] = 'tls://$FQDN:587';|" /etc/roundcube/config.inc.php
|
sed -i "s|^\s*\$config\['smtp_host'\]\s*=.*|\$config['smtp_host'] = 'tls://$FQDN:587';|" /etc/roundcube/config.inc.php
|
||||||
|
|
||||||
|
# Enable plugins
|
||||||
|
sed -i "/\$config\['plugins'\] = \[/,/\];/c\\
|
||||||
|
\$config['plugins'] = [\\
|
||||||
|
'managesieve',\\
|
||||||
|
'password',\\
|
||||||
|
];" /etc/roundcube/config.inc.php
|
||||||
|
|
||||||
# Check if web interface is loading
|
# Check if web interface is loading
|
||||||
curl -s https://$FQDN | grep title | grep -q "Roundcube Webmail"
|
curl -s https://$FQDN | grep title | grep -q "Roundcube Webmail"
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue