We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16bc619 + b82ca32 commit def1198Copy full SHA for def1198
install/vst-install-rhel.sh
@@ -725,12 +725,19 @@ fi
725
if [ "$release" -eq '5' ]; then
726
wget $CHOST/$VERSION/dovecot.conf -O /etc/dovecot.conf
727
else
728
- wget $CHOST/$VERSION/dovecot.tar.gz -O /etc/dovecot.tar.gz
729
- cd /etc/
730
- rm -rf dovecot
+ wget $CHOST/$VERSION/$release/dovecot.tar.gz -O /etc/dovecot.tar.gz
+ cd /etc
+ 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
736
tar -xzf dovecot.tar.gz
737
rm -f dovecot.tar.gz
- chown -R root:root /etc/dovecot
738
739
+ chown -R root:root /etc/dovecot
740
741
fi
742
gpasswd -a dovecot mail
743
chkconfig dovecot on
0 commit comments