only start opennebula if database do not exists

This commit is contained in:
Emmanuel Garette 2019-02-18 18:25:26 +01:00
parent a71da62006
commit fb1bea8654
1 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,8 @@ else
fi
# creation de la base /var/lib/one/one.db
systemctl daemon-reload
systemctl start opennebula.service
if [ ! -e /var/lib/one/one.db ]; then
systemctl daemon-reload
systemctl start opennebula.service
fi
exit 0