Commit 0934e6b0 authored by Benjamin Sonntag's avatar Benjamin Sonntag

fixing upgrade check

parent 5f51c550
......@@ -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)
......
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