Commit e578e4a2 authored by Benjamin Sonntag's avatar Benjamin Sonntag

fixing upgrade of AltrnC from 1 or 3.0

parent db9d270d
...@@ -28,6 +28,11 @@ then ...@@ -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 #"
......
...@@ -413,9 +413,6 @@ update mail_domain, domaines ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment