fixing upgrade from 3.0 / 3.1 / 3.2

This commit is contained in:
Benjamin Sonntag 2014-07-04 16:04:17 +02:00
parent 0fa8aa8fc6
commit fe6b632b74
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash
# ----------------------------------------------------------------------
# AlternC - Web Hosting System

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash
# this script will look for upgrade scripts in
# /usr/share/alternc/install/upgrades and execute them based on the
@ -31,7 +31,7 @@ then
# 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"
oldvers="3.1.0~c.sh"
fi
else
echo "##############################################"
@ -71,7 +71,7 @@ for file in $( ls $extensions | sort -n ) ; do
cat $file
echo "UPDATE alternc_status SET value='$file' WHERE name='alternc_version';"
echo "COMMIT;"
) | mysql --defaults-file=/etc/alternc/my.cnf
) | mysql -f --defaults-file=/etc/alternc/my.cnf
;;
php)
php -q $file