eole-one-master/posttemplate/90-one-db
2016-05-10 14:35:32 +02:00

25 lines
305 B
Bash

#!/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 ${?}