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

View File

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