[odrs-web/oscp] User should be odrs, adjust permissions for sed to work as expected
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/oscp] User should be odrs, adjust permissions for sed to work as expected
- Date: Mon, 12 Nov 2018 18:37:01 +0000 (UTC)
commit e2ec33fcfb6a7429eaf57df14976f7d71a99d380
Author: Andrea Veri <averi redhat com>
Date: Mon Nov 12 19:36:56 2018 +0100
User should be odrs, adjust permissions for sed to work as expected
Dockerfile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 079b401..fd6a258 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,9 +19,10 @@ COPY odrs.gnome.org.conf /etc/apache2/conf.d/000-default.conf
RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/httpd.conf
RUN sed -i 's/Listen 443/Listen 8443/' /etc/apache2/conf.d/ssl.conf
-RUN useradd -u 1001 -g 0 -d ${ODRS_HOME}/ -r -s /usr/sbin/nologin odrsweb
+RUN useradd -u 1001 -g 0 -d ${ODRS_HOME}/ -r -s /usr/sbin/nologin odrs
-RUN chown root:1001 /etc/apache2/conf.d/000-default.conf && \
+RUN chown root:1001 /etc/apache2/conf.d && \
+ chown root:1001 /etc/apache2/conf.d/000-default.conf && \
chown -R 1001:0 ${ODRS_HOME} && \
chmod -R 664 ${ODRS_HOME} && \
find ${ODRS_HOME} -type d -exec chmod 775 {} +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]