fixing upgrade from 3.0 / 3.1 / 3.2
This commit is contained in:
parent
0fa8aa8fc6
commit
fe6b632b74
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# AlternC - Web Hosting System
|
# AlternC - Web Hosting System
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash
|
||||||
|
|
||||||
# this script will look for upgrade scripts in
|
# this script will look for upgrade scripts in
|
||||||
# /usr/share/alternc/install/upgrades and execute them based on the
|
# /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*
|
# this is a *version number*, not a *last upgrade script* we have this *border case*
|
||||||
if [ "$oldvers" = "3.1" ]
|
if [ "$oldvers" = "3.1" ]
|
||||||
then
|
then
|
||||||
oldvers="3.1.0~b.php"
|
oldvers="3.1.0~c.sh"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "##############################################"
|
echo "##############################################"
|
||||||
|
@ -71,7 +71,7 @@ for file in $( ls $extensions | sort -n ) ; do
|
||||||
cat $file
|
cat $file
|
||||||
echo "UPDATE alternc_status SET value='$file' WHERE name='alternc_version';"
|
echo "UPDATE alternc_status SET value='$file' WHERE name='alternc_version';"
|
||||||
echo "COMMIT;"
|
echo "COMMIT;"
|
||||||
) | mysql --defaults-file=/etc/alternc/my.cnf
|
) | mysql -f --defaults-file=/etc/alternc/my.cnf
|
||||||
;;
|
;;
|
||||||
php)
|
php)
|
||||||
php -q $file
|
php -q $file
|
||||||
|
|
Loading…
Reference in New Issue