Skip to content
Snippets Groups Projects
Commit bd32c7a2 authored by Steven Dake's avatar Steven Dake
Browse files

Move scripts for horizon to docker_templates

Change-Id: If260f47ea3e4f9917cf20a6e2013cc81bfa5fc83
Partially-Implements: blueprint remove-docker-dir
parent 43327444
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
SOURCE="/opt/kolla/horizon/local_settings"
TARGET="/etc/openstack-dashboard/local_settings"
OWNER="horizon"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
SOURCE="/opt/kolla/horizon/horizon.conf"
TARGET="/etc/apache2/sites-enabled/000-default.conf"
else
SOURCE="/opt/kolla/horizon/horizon.conf"
TARGET="/etc/httpd/sites.d/horizon.conf"
fi
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
#!/bin/bash
set -o errexit
# Loading common functions
source /opt/kolla/kolla-common.sh
if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
CMD="/usr/sbin/apache2"
ARGS="-DFOREGROUND"
# Loading Apache2 ENV variables
source /etc/apache2/envvars
else
CMD="/usr/sbin/httpd"
ARGS="-DFOREGROUND"
fi
# Execute config strategy
set_configs
exec $CMD $ARGS
../../docker/common/horizon/config-external.sh
\ No newline at end of file
#!/bin/bash
SOURCE="/opt/kolla/horizon/local_settings"
TARGET="/etc/openstack-dashboard/local_settings"
OWNER="horizon"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
SOURCE="/opt/kolla/horizon/horizon.conf"
TARGET="/etc/apache2/sites-enabled/000-default.conf"
else
SOURCE="/opt/kolla/horizon/horizon.conf"
TARGET="/etc/httpd/sites.d/horizon.conf"
fi
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
../../docker/common/horizon/start.sh
\ No newline at end of file
#!/bin/bash
set -o errexit
# Loading common functions
source /opt/kolla/kolla-common.sh
if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
CMD="/usr/sbin/apache2"
ARGS="-DFOREGROUND"
# Loading Apache2 ENV variables
source /etc/apache2/envvars
else
CMD="/usr/sbin/httpd"
ARGS="-DFOREGROUND"
fi
# Execute config strategy
set_configs
exec $CMD $ARGS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment