fixing upgrade of AltrnC from 1 or 3.0

This commit is contained in:
Benjamin Sonntag 2014-03-28 15:06:59 +01:00
parent db9d270de7
commit e578e4a230
2 changed files with 5 additions and 3 deletions

View File

@ -28,6 +28,11 @@ then
if [ -f "/var/lib/alternc/backups/lastversion" ] if [ -f "/var/lib/alternc/backups/lastversion" ]
then then
oldvers="`cat /var/lib/alternc/backups/lastversion`" oldvers="`cat /var/lib/alternc/backups/lastversion`"
# this is a *version number*, not a *last upgrade script* we have this *border case*
if [ "$oldvers" = "3.1" ]
then
oldvers="3.1.0~b.php"
fi
else else
echo "##############################################" echo "##############################################"
echo "# NO VERSION FOUND TO UPGRADE FROM, ABORTING #" echo "# NO VERSION FOUND TO UPGRADE FROM, ABORTING #"

View File

@ -413,9 +413,6 @@ update mail_domain, domaines
and mail_domain.mail like '%@%' and mail_domain.mail like '%@%'
and mail_domain.type = 0 and mail_domain.type = 0
and mail_domain.pop = 0; and mail_domain.pop = 0;
~
-- Insert procmail managed addresses. -- Insert procmail managed addresses.
-- Note: those addresses should be treated as local managed adresses. -- Note: those addresses should be treated as local managed adresses.