Tweak Tomcat permissions
This commit is contained in:
parent
40e26e4407
commit
590dde8206
2
apk/spoc
2
apk/spoc
@ -1 +1 @@
|
||||
Subproject commit 44c1a8638d651a55e558ca9d97cd2222a367eeac
|
||||
Subproject commit d4bbce2dcf5ae73bfa22e6ce3a9c09b507857fb4
|
@ -21,7 +21,8 @@ RUN EOF
|
||||
# Create OS user
|
||||
addgroup -S -g 8080 tomcat
|
||||
adduser -S -u 8080 -h /srv/tomcat -s /bin/false -g tomcat -G tomcat tomcat
|
||||
chown -R tomcat:tomcat /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
|
||||
chgrp -R tomcat /srv/tomcat
|
||||
chown -R tomcat /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
|
||||
EOF
|
||||
|
||||
CMD /usr/bin/catalina.sh run
|
||||
|
@ -13,11 +13,6 @@ RUN EOF
|
||||
rm -f /srv/tomcat/bin/tomcat-native.tar.gz
|
||||
rm -f /srv/tomcat/temp/safeToDelete.tmp
|
||||
rm -rf /srv/tomcat/webapps/*
|
||||
|
||||
# Change permissions
|
||||
find /srv/tomcat -type d -exec chmod 755 {} +
|
||||
find /srv/tomcat -type f -not -path '/srv/tomcat/conf/*' -exec chmod 644 {} +
|
||||
chmod 755 /srv/tomcat/bin/*.sh
|
||||
EOF
|
||||
|
||||
COPY image.d
|
||||
@ -26,7 +21,8 @@ RUN EOF
|
||||
# Create OS user
|
||||
addgroup -S -g 8080 tomcat
|
||||
adduser -S -u 8080 -h /srv/tomcat -s /bin/false -g tomcat -G tomcat tomcat
|
||||
chown -R tomcat:tomcat /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
|
||||
chgrp -R tomcat /srv/tomcat
|
||||
chown -R tomcat /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
|
||||
EOF
|
||||
|
||||
CMD /usr/bin/catalina.sh run
|
||||
|
Loading…
Reference in New Issue
Block a user