File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,12 @@ function setup_non_root_user() {
9797 chgrp -R 0 /home/${NOOBAA_USER} && chmod -R g=u /home/${NOOBAA_USER}
9898
9999 # in openshift the container will run as a random user which belongs to root group
100- deploy_log " setting file permissions for root group (OpenShift compatible)"
101-
102- # supervisord binaries: read & execute only
103- chgrp -R 0 /bin/supervisor* && chmod -R g+rX /bin/supervisor*
104-
105- # supervisor runtime files (needs write)
106- mkdir -p /var/log/supervisor
107- chgrp -R 0 /var/log/supervisor && chmod -R g+rwX /var/log/supervisor
100+ # set permissions for group to be same as owner to allow access to necessary files
101+ deploy_log " setting file permissions for root group"
102+ # allow root group same permissions as root user so it can run supervisord
103+ chgrp -R 0 /bin/supervisor* && chmod -R g=u /bin/supervisor*
104+ # supervisord needs to write supervisor.sock file in /var/log
105+ chgrp -R 0 /var/log && chmod -R g=u /var/log
108106
109107 # noobaa code dir - allow same access as user
110108 chgrp -R 0 /root/node_modules && chmod -R g=u /root/node_modules
You can’t perform that action at this time.
0 commit comments