diff --git a/dicos/99_one-master.xml b/dicos/99_one-master.xml index 475e444..297fb67 100644 --- a/dicos/99_one-master.xml +++ b/dicos/99_one-master.xml @@ -78,6 +78,9 @@ 2.5.2 + Configuration du pilote (Master) diff --git a/posttemplate/90-one-db b/posttemplate/90-one-db new file mode 100644 index 0000000..53a2c03 --- /dev/null +++ b/posttemplate/90-one-db @@ -0,0 +1,24 @@ +#!/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 ${?}