25 lines
305 B
Bash
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 ${?}
|