2014-11-13 10:06:16 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-05-11 11:15:07 +02:00
|
|
|
auth_mode="$(CreoleGet sunstone_auth_modes '')"
|
2014-11-13 10:06:16 +01:00
|
|
|
unlink /var/lib/one/remotes/auth/default 2>/dev/null
|
|
|
|
|
|
|
|
if [ -z "${auth_mode}" ]; then
|
|
|
|
ln -s /var/lib/one/remotes/auth/{dummy,default}
|
|
|
|
else
|
|
|
|
ln -s /var/lib/one/remotes/auth/{${auth_mode},default}
|
|
|
|
fi
|
2019-02-06 14:14:03 +01:00
|
|
|
|
|
|
|
# creation de la base /var/lib/one/one.db
|
|
|
|
if [ ! -e /var/lib/one/one.db ]; then
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl start opennebula.service
|
|
|
|
fi
|
|
|
|
exit 0
|