mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-07 12:01:27 -05:00
6db6b22aaf
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
23 lines
669 B
Bash
Executable File
23 lines
669 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# todo: log all ocis services to stdout
|
|
|
|
echo "Waiting for EOS MGM"
|
|
echo "until nc -z -w 3 $EOS_MGM_ALIAS 1094; do sleep 2; done;" > /wait-for-mgm
|
|
chmod +x /wait-for-mgm
|
|
mkdir -p /var/log/ocis
|
|
|
|
(/wait-for-mgm; /setup > /var/log/ocis/setup.log; cat /var/log/ocis/setup.log ) &
|
|
|
|
echo "----- [ocis] DOMAIN setup -----"
|
|
echo "Domain / IP: $OCIS_DOMAIN"
|
|
mkdir -p /etc/ocis
|
|
sed -e "s|@IPADDR@|${OCIS_DOMAIN}|g" /config/identifier-registration.yml.tmpl > /etc/ocis/identifier-registration.yml
|
|
|
|
# TODO do we still need to precreate this folder?
|
|
mkdir -p /var/tmp/reva
|
|
|
|
echo "----- [ocis] Starting oCIS -----"
|
|
# todo start ocis as daemon not as root
|
|
exec ocis server
|