mirror of
https://github.com/3-w-c/docker-simplesamlphp.git
synced 2025-07-13 16:24:03 +00:00
Adjust permissions
This commit is contained in:
@ -21,14 +21,16 @@ RUN echo -e 'server {\n listen 80 default_server;\n listen [::
|
|||||||
&& sed -i '/ listen \[::\]:80 default_server;/d' /etc/opt/rh/rh-nginx114/nginx/nginx.conf \
|
&& sed -i '/ listen \[::\]:80 default_server;/d' /etc/opt/rh/rh-nginx114/nginx/nginx.conf \
|
||||||
&& sed -i '/ server_name _;/d' /etc/opt/rh/rh-nginx114/nginx/nginx.conf \
|
&& sed -i '/ server_name _;/d' /etc/opt/rh/rh-nginx114/nginx/nginx.conf \
|
||||||
&& mkdir -p /var/lib/php/session/ \
|
&& mkdir -p /var/lib/php/session/ \
|
||||||
&& chown -Rv nginx:nginx /var/lib/php/session/
|
&& chown -Rv nginx:nginx /var/lib/php/session/ \
|
||||||
|
&& chmod a+t /var/lib/php/session/
|
||||||
|
|
||||||
#Download SimpleSAMLphp, Archive must remain present for seeding post install.
|
#Download SimpleSAMLphp, Archive must remain present for seeding post install.
|
||||||
RUN curl -Lo /var/simplesamlphp.tar.gz https://github.com/simplesamlphp/simplesamlphp/releases/download/v$SIMPLESAMLPHP_RELEASE/simplesamlphp-$SIMPLESAMLPHP_RELEASE.tar.gz \
|
RUN curl -Lo /var/simplesamlphp.tar.gz https://github.com/simplesamlphp/simplesamlphp/releases/download/v$SIMPLESAMLPHP_RELEASE/simplesamlphp-$SIMPLESAMLPHP_RELEASE.tar.gz \
|
||||||
&& tar xzf /var/simplesamlphp.tar.gz --directory /var \
|
&& tar xzf /var/simplesamlphp.tar.gz --directory /var \
|
||||||
&& mv /var/simplesamlphp-* /var/simplesamlphp \
|
&& mv /var/simplesamlphp-* /var/simplesamlphp \
|
||||||
&& touch /var/simplesamlphp/cert/breadcrumb \
|
&& touch /var/simplesamlphp/cert/breadcrumb \
|
||||||
&& touch /var/simplesamlphp/log/breadcrumb
|
&& touch /var/simplesamlphp/log/breadcrumb \
|
||||||
|
&& chown -Rv nginx:nginx /var/simplesamlphp/log/
|
||||||
|
|
||||||
#Redirect NGINX Logs
|
#Redirect NGINX Logs
|
||||||
RUN ln -sf /dev/stdout /var/opt/rh/rh-nginx114/log/nginx/access.log \
|
RUN ln -sf /dev/stdout /var/opt/rh/rh-nginx114/log/nginx/access.log \
|
||||||
|
Reference in New Issue
Block a user