diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-03-27 11:26:17 +0000 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2015-04-10 20:17:46 +0100 |
commit | dc901c3b9998835acb1f284f0c5e34458ad3c562 (patch) | |
tree | 0754cd1210bce6d9ceecfb831515e803212c7009 /openstack/usr/share/openstack/apache-httpd-server-setup | |
parent | 7a70cdae735d3f051cc045ee5fb1de365755f6e4 (diff) | |
download | definitions-dc901c3b9998835acb1f284f0c5e34458ad3c562.tar.gz |
horizon: Move setup scripts to Ansible.
Now horizon-setup also configures Apache, given that they will be in
the same host. This can be split in different setup scripts.
Diffstat (limited to 'openstack/usr/share/openstack/apache-httpd-server-setup')
-rwxr-xr-x | openstack/usr/share/openstack/apache-httpd-server-setup | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/openstack/usr/share/openstack/apache-httpd-server-setup b/openstack/usr/share/openstack/apache-httpd-server-setup deleted file mode 100755 index 8f8cdd60..00000000 --- a/openstack/usr/share/openstack/apache-httpd-server-setup +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -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 # -############################################################################### -mkdir -p /var/www -groupadd -r apache -useradd -c "Apache Server" -d /var/www -g apache \ - -s /bin/false apache - -############################################################################### -# Move suexec to the directory where apache is configured to have it # -# Check configure in strata/apache-httpd-server/httpd-server.morph # -############################################################################### -mkdir -p /usr/lib/httpd -mv -v /usr/sbin/suexec /usr/lib/httpd/suexec -chgrp apache /usr/lib/httpd/suexec -chmod 4754 /usr/lib/httpd/suexec -chown -R apache:apache /var/www - -install -D -m 644 /proc/self/fd/0 <<'EOF' /var/openstack/apache-http-setup -Apache http setup: success -EOF - -exit 0 |