[odrs-web] Seems httpd is still not happy about sites.d, revert using conf.d for the vhost too
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] Seems httpd is still not happy about sites.d, revert using conf.d for the vhost too
- Date: Mon, 17 Dec 2018 13:01:29 +0000 (UTC)
commit ed4d961c7c1f8d256170f6183941edfe4696bc71
Author: Andrea Veri <averi redhat com>
Date: Mon Dec 17 14:01:19 2018 +0100
Seems httpd is still not happy about sites.d, revert using conf.d for the vhost too
Dockerfile | 9 +++------
entrypoint.sh | 8 ++++----
2 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index a92e4db..9f82fba 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,19 +12,16 @@ WORKDIR ${ODRS_HOME}
COPY app_data ${ODRS_HOME}
-RUN mkdir /etc/httpd/sites.d && \
- sed -i '/IncludeOptional conf.d\/\*.conf/i IncludeOptional sites.d/*.conf' /etc/httpd/conf/httpd.conf &&
\
- rm /etc/httpd/conf.d/welcome.conf
-
-COPY odrs.gnome.org.conf /etc/httpd/sites.d/odrs.gnome.org.conf
+RUN rm /etc/httpd/conf.d/welcome.conf
+COPY odrs.gnome.org.conf /etc/httpd/conf.d/odrs.gnome.org.conf
RUN python /opt/app-root/src/cron.py ratings /opt/app-root/src/app/static/ratings.json
RUN chown -R 1000310000:0 ${ODRS_HOME} && \
chmod -R 664 ${ODRS_HOME} && \
- chown -R 1000310000:0 /etc/httpd/sites.d && \
chown 1000310000:0 /etc/httpd/conf && \
chown 1000310000:0 /etc/httpd/conf.d && \
+ chown 1000310000:0 /etc/httpd/conf.d/odrs.gnome.org.conf && \
find ${ODRS_HOME} -type d -exec chmod 775 {} +
COPY entrypoint.sh /usr/local/bin
diff --git a/entrypoint.sh b/entrypoint.sh
index 65835d8..9f3b21d 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-sed -i "s/replace_odrs_secret/${ODRS_REVIEWS_SECRET}/" /etc/httpd/sites.d/odrs.gnome.org.conf
-sed -i "s/replace_odrs_username/${MYSQL_DB_USERNAME}/" /etc/httpd/sites.d/odrs.gnome.org.conf
-sed -i "s/replace_odrs_password/${MYSQL_DB_PASSWORD}/" /etc/httpd/sites.d/odrs.gnome.org.conf
-sed -i "s/replace_odrs_host/${MYSQL_DB_HOST}/" /etc/httpd/sites.d/odrs.gnome.org.conf
+sed -i "s/replace_odrs_secret/${ODRS_REVIEWS_SECRET}/" /etc/httpd/conf.d/odrs.gnome.org.conf
+sed -i "s/replace_odrs_username/${MYSQL_DB_USERNAME}/" /etc/httpd/conf.d/odrs.gnome.org.conf
+sed -i "s/replace_odrs_password/${MYSQL_DB_PASSWORD}/" /etc/httpd/conf.d/odrs.gnome.org.conf
+sed -i "s/replace_odrs_host/${MYSQL_DB_HOST}/" /etc/httpd/conf.d/odrs.gnome.org.conf
while true; do python /opt/app-root/src/cron.py ratings /opt/app-root/src/app/static/ratings.json ; sleep
43200 ; done &
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]