2016-01-18 21:00:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "run extended start"
|
|
|
|
|
2016-03-03 22:49:58 -05:00
|
|
|
if [[ ! -d "/var/log/kolla/mongodb" ]]; then
|
|
|
|
mkdir -p /var/log/kolla/mongodb
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $(stat -c %a /var/log/kolla/mongodb) != "755" ]]; then
|
|
|
|
chmod 755 /var/log/kolla/mongodb
|
|
|
|
fi
|
|
|
|
|
2016-01-18 21:00:45 +00:00
|
|
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
|
|
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
|
|
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
|
|
|
sudo chown mongodb: /var/lib/mongodb/
|
|
|
|
exit 0
|
|
|
|
fi
|