File: openstack-dashboard-apache.config

package info (click to toggle)
horizon 3%3A18.6.2-5%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 29,444 kB
  • sloc: python: 93,101; javascript: 47,025; sh: 421; makefile: 78
file content (35 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

if [ -r /etc/default/openstack-dashboard-apache ] ; then
	. /etc/default/openstack-dashboard-apache

	if [ "${HORIZON_ACTIVATE_VHOSTS}" = "true" ] || [ "${HORIZON_ACTIVATE_VHOSTS}" = "yes" ] ; then
		db_set horizon/activate_vhost true
	else
		db_set horizon/activate_vhost false
	fi
fi


db_input high horizon/activate_vhost || true
db_go || true

db_get horizon/activate_vhost
if [ "${RET}" = "true" ] ; then
	if [ -r /etc/default/openstack-dashboard-apache ] ; then
		if [ "${HORIZON_USE_SSL}" = "true" ] || [ "${HORIZON_USE_SSL}" = "yes" ] ; then
			db_set horizon/use_ssl true
		else
			db_set horizon/use_ssl false
		fi
	fi

	db_input high horizon/use_ssl || true
	db_go || true
fi

exit 0