Move logging directory ownership setting from dockerfile to install script

This commit is contained in:
Adam W Zheng 2019-03-12 16:11:39 -05:00
parent 976a3643bb
commit eadbdc7445
2 changed files with 2 additions and 3 deletions

View File

@ -29,8 +29,7 @@ RUN curl -Lo /var/simplesamlphp.tar.gz https://github.com/simplesamlphp/simplesa
&& tar xzf /var/simplesamlphp.tar.gz --directory /var \
&& mv /var/simplesamlphp-* /var/simplesamlphp \
&& touch /var/simplesamlphp/cert/breadcrumb \
&& touch /var/simplesamlphp/log/breadcrumb \
&& chown -Rv nginx:nginx /var/simplesamlphp/log/
&& touch /var/simplesamlphp/log/breadcrumb
#Redirect NGINX Logs
RUN ln -sf /dev/stdout /var/opt/rh/rh-nginx114/log/nginx/access.log \

View File

@ -283,7 +283,7 @@ if [ "$CONFIG_STORETYPE" == "memcache" ]; then
fi
fi
chown php-fpm:php-fpm /var/simplesamlphp/log/
chown nginx:nginx /var/simplesamlphp/log/
touch /var/simplesamlphp/config/.dockersetupdone