a794c4cc2f
Globally updates all the elements so we explicitly set the virtualenv install directory with the os-svc-daemon -i option. This allows us to support both isolated and shared venvs (which some people would like to use). Change-Id: Ie264ff58d7e733542ba32853f5c0f593b64ffe4a
14 lines
435 B
Bash
Executable File
14 lines
435 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
install-packages swig
|
|
os-svc-install -u tuskar -r /opt/stack/tuskar
|
|
|
|
install -d -m 0750 -o tuskar -g tuskar /etc/tuskar
|
|
cp -a /opt/stack/tuskar/etc/tuskar/policy.json /etc/tuskar
|
|
cp -a /opt/stack/tuskar/etc/tuskar/tripleo-heat-templates /etc/tuskar
|
|
|
|
os-svc-daemon -i "$TUSKAR_VENV_DIR" tuskar-api tuskar tuskar-api "--config-dir /etc/tuskar"
|
|
|
|
ln -s $TUSKAR_VENV_DIR/bin/tuskar-dbsync /usr/local/bin/tuskar-dbsync
|