From: Ghe Rivero Date: Tue, 6 Mar 2012 07:16:17 +0000 (+0100) Subject: Create horizon user/group and use it on apache wsgi X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=07ce355cd77890f2a9ddf837943064931fa46e51;p=openstack-build%2Fhorizon-build.git Create horizon user/group and use it on apache wsgi Rewritten-From: 1088d76799644ec67892bbb4bb2c00528da617e5 --- diff --git a/xenial/debian/openstack-dashboard-apache.conf b/xenial/debian/openstack-dashboard-apache.conf index a3a6294..08081ac 100644 --- a/xenial/debian/openstack-dashboard-apache.conf +++ b/xenial/debian/openstack-dashboard-apache.conf @@ -1,6 +1,8 @@ Listen 8080 WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi + WSGIDaemonProcess openstack-dashboard user=horizon group=horizon + WSGIProcessGroup openstack-dashboard AllowOverride None diff --git a/xenial/debian/openstack-dashboard.postinst b/xenial/debian/openstack-dashboard.postinst new file mode 100644 index 0000000..189fb92 --- /dev/null +++ b/xenial/debian/openstack-dashboard.postinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ] +then + adduser --system \ + --home /var/lib/horizon \ + --quiet \ + --disabled-password \ + --group horizon +fi + +#DEBHELPER# \ No newline at end of file diff --git a/xenial/debian/openstack-dashboard.postrm b/xenial/debian/openstack-dashboard.postrm new file mode 100644 index 0000000..7936ba5 --- /dev/null +++ b/xenial/debian/openstack-dashboard.postrm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +case $1 in + purge) + userdel horizon || true + groupdel horizon || true + ;; +esac + +#DEBHELPER# \ No newline at end of file