16 lines
374 B
Bash
16 lines
374 B
Bash
#!/bin/bash
|
|
|
|
auth_mode="$(CreoleGet sunstone_auth_modes '')"
|
|
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
|
|
|
|
# creation de la base /var/lib/one/one.db
|
|
systemctl daemon-reload
|
|
systemctl start opennebula.service
|
|
exit 0
|