# If the DB exist but the alternc_status table doesn't, we will initialize it below
# In that case we search where we upgrade from in /var/lib/alternc/backups/lastversion from debian.postinstall script
oldvers="`mysql --defaults-file=/etc/alternc/my.cnf --skip-column-names-e"SELECT value FROM alternc_status WHERE name='alternc_version'"||true`"
oldvers="`mysql --defaults-file=/etc/alternc/my.cnf --skip-column-names-e"SELECT value FROM alternc_status WHERE name='alternc_version'" 2>/dev/null||true`"
if[-z"$oldvers"]
then
# no version number, we check from /var/lib/alternc