Skip to content

Commit ee64dd1

Browse files
authored
Fix sed for installing sieve (hestiacp#3679)
1 parent 87a0a3e commit ee64dd1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ if [ "$sieve" = 'yes' ]; then
20142014
chmod 751 -R $RC_CONFIG_DIR
20152015
chmod 644 $RC_CONFIG_DIR/*.php
20162016
chmod 644 $RC_CONFIG_DIR/plugins/managesieve/config.inc.php
2017-
sed -i "s/'archive'/'archive', 'managesieve'/g" $RC_CONFIG_DIR/config.inc.php
2017+
sed -i "s/\"archive\"/\"archive\", \"managesieve\"/g" $RC_CONFIG_DIR/config.inc.php
20182018
fi
20192019

20202020
# Restart Dovecot and exim4

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ if [ "$sieve" = 'yes' ]; then
19941994
chmod 751 -R $RC_CONFIG_DIR
19951995
chmod 644 $RC_CONFIG_DIR/*.php
19961996
chmod 644 $RC_CONFIG_DIR/plugins/managesieve/config.inc.php
1997-
sed -i "s/'archive'/'archive', 'managesieve'/g" $RC_CONFIG_DIR/config.inc.php
1997+
sed -i "s/\"archive\"/\"archive\", \"managesieve\"/g" $RC_CONFIG_DIR/config.inc.php
19981998
fi
19991999

20002000
# Restart Dovecot and exim4

install/upgrade/manual/install_sieve.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if [ "$HAS_DOVECOT_SIEVE_INSTALLED" = "0" ]; then
8080

8181
chmod 644 $RC_CONFIG_DIR/plugins/managesieve/config.inc.php
8282

83-
sed -i "s/'archive'/'archive', 'managesieve'/g" $RC_CONFIG_DIR/config.inc.php
83+
sed -i "s/\"archive\"/\"archive\", \"managesieve\"/g" $RC_CONFIG_DIR/config.inc.php
8484

8585
#restart dovecot and exim4
8686
systemctl restart dovecot > /dev/null 2>&1
@@ -118,7 +118,7 @@ else
118118
# Roundcube
119119
rm -f -r $RC_CONFIG_DIR/plugins/managesieve
120120
rm -f $RC_INSTALL_DIR/plugins/managesieve/config.inc.php
121-
sed -i "s/'archive', 'managesieve'/'archive'/g" $RC_CONFIG_DIR/config.inc.php
121+
sed -i "s/\"archive\", \"managesieve\"/\"archive\"/g" $RC_CONFIG_DIR/config.inc.php
122122

123123
#restart dovecot and exim4
124124
systemctl restart dovecot > /dev/null 2>&1

0 commit comments

Comments
 (0)