eole-one-master/posttemplate/90-one-db

25 lines
305 B
Plaintext
Raw Normal View History

#!/bin/bash
#
# AIM : Manage Opennebula database update
#
#
. /usr/lib/eole/ihm.sh
function updateDB()
{
local dbfile='/var/lib/one/one.db'
local cmd="onedb"
$cmd upgrade -f -s /var/lib/one/one.db
return ${?}
}
echo
EchoGras "Mise à jour de la base de données ONE"
echo
updateDB
echo
exit ${?}