fixing upgrade check

This commit is contained in:
Benjamin Sonntag 2014-03-27 17:08:20 +01:00
parent 5f51c55072
commit 0934e6b08f
1 changed files with 3 additions and 3 deletions

View File

@ -62,10 +62,10 @@ for file in $( ls $extensions | sort -n ) ; do
# run the proper program to interpret the upgrade script
case "$ext" in
sql)
( echo "BEGIN"
( echo "BEGIN;"
cat $file
echo "UPDATE alternc_status SET value='$file' WHERE name='alternc_version'"
echo "COMMIT"
echo "UPDATE alternc_status SET value='$file' WHERE name='alternc_version';"
echo "COMMIT;"
) | mysql --defaults-file=/etc/alternc/my.cnf
;;
php)