diff --git a/posttemplate/90-one-db b/posttemplate/90-one-db index 53a2c03..f5d5aba 100644 --- a/posttemplate/90-one-db +++ b/posttemplate/90-one-db @@ -12,8 +12,13 @@ function updateDB() local dbfile='/var/lib/one/one.db' local cmd="onedb" - $cmd upgrade -f -s /var/lib/one/one.db - return ${?} + if [[ -f ${dbfile} ]] + then + $cmd upgrade -f -s ${dbfile} + return ${?} + else + return 0 + fi } echo