From 9a60419daae19a0d8b2c45d17c9f41a3c061aaa9 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 9 May 2016 15:27:16 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20script=20de=20gestion=20de=20la=20?= =?UTF-8?q?mise=20=C3=A0=20jour=20de=20la=20base=20de=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour l'instant compatible uniquement avec sqlite. ref #9456 @1h --- dicos/99_one-master.xml | 3 +++ posttemplate/90-one-db | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 posttemplate/90-one-db 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 ${?}