25 lines
305 B
Plaintext
25 lines
305 B
Plaintext
|
#!/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 ${?}
|