Skip to content

Commit def1198

Browse files
committed
Merge branch 'master' of github.com:serghey-rodin/vesta
2 parents 16bc619 + b82ca32 commit def1198

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

install/vst-install-rhel.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,12 +725,19 @@ fi
725725
if [ "$release" -eq '5' ]; then
726726
wget $CHOST/$VERSION/dovecot.conf -O /etc/dovecot.conf
727727
else
728-
wget $CHOST/$VERSION/dovecot.tar.gz -O /etc/dovecot.tar.gz
729-
cd /etc/
730-
rm -rf dovecot
728+
wget $CHOST/$VERSION/$release/dovecot.tar.gz -O /etc/dovecot.tar.gz
729+
cd /etc
730+
if [ -d /etc/dovecot ]; then
731+
rm -rf /etc/dovecot
732+
fi
733+
if [ -f /etc/dovecot.conf ]; then
734+
rm /etc/dovecot.conf
735+
fi
731736
tar -xzf dovecot.tar.gz
732737
rm -f dovecot.tar.gz
733-
chown -R root:root /etc/dovecot
738+
if [ -d /etc/dovecot ]; then
739+
chown -R root:root /etc/dovecot
740+
fi
734741
fi
735742
gpasswd -a dovecot mail
736743
chkconfig dovecot on

0 commit comments

Comments
 (0)