From c870799193f0df6f72ea9c60d14bcc7b45fcd9ec Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Thu, 15 Jan 2015 17:15:33 +0000 Subject: REMOVEME: workaround to exit of the httpd setup service when has been called before --- openstack/usr/share/openstack/apache-httpd-server-setup | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openstack') diff --git a/openstack/usr/share/openstack/apache-httpd-server-setup b/openstack/usr/share/openstack/apache-httpd-server-setup index 7b10bd64..11e88fb2 100755 --- a/openstack/usr/share/openstack/apache-httpd-server-setup +++ b/openstack/usr/share/openstack/apache-httpd-server-setup @@ -20,6 +20,10 @@ # as default shell in gerrit systems. set -e +if [ -f /var/openstack/apache-http-setup ]; then + exit 0 +fi + ############################################################################### # Move suexec to the directory where apache is configured to have it # # Check configure in strata/apache-httpd-server/httpd-server.morph # @@ -40,3 +44,8 @@ chmod 4754 /usr/lib/httpd/suexec chown -R apache:apache /srv/www mkdir -p /var/run/httpd/ chown -R apache:apache /var/run/httpd + + +install -D -m 644 /proc/self/fd/0 <<'EOF' /var/openstack/apache-http-setup +Apache http setup: success +EOF -- cgit v1.2.1