upgrade.sh
branchv0.6.x
changeset 264 04fea4d8b900
parent 167 bb58aedefa3a
child 483 fb210a116f18
--- a/upgrade.sh	Sun Apr 25 03:03:09 2010 +0000
+++ b/upgrade.sh	Sun Apr 25 04:51:14 2010 +0000
@@ -10,7 +10,7 @@
 PF_CONFDIR=$(postconf -h config_directory)
 PF_GID=$(id -g $(postconf -h mail_owner))
 POSTCONF=$(which postconf)
-DOVECOT_VERS=$(dovecot --version | awk -F . '{print $1 $2}')
+DOVECOT_VERS=$(dovecot --version | awk '{print $1}')
 LOCALE_DIR=${PREFIX}/share/locale
 DOC_DIR=${PREFIX}/share/doc/vmm
 if [ ${PREFIX} = "/usr" ]; then
@@ -29,7 +29,7 @@
 fi
 
 # update config file before installing the new files.
-./update_config.py
+./update_config.py ${DOVECOT_VERS:-'1.2.11'}
 rv=$?
 if [ $rv -eq 2 ]; then
 	echo "please run the install.sh script"