Skip to content

Commit a05945a

Browse files
committed
Fix supervisor issue after backports
Fix supervisor issue after backports Signed-off-by: liranmauda <liran.mauda@gmail.com> (cherry picked from commit 1135ea8)
1 parent 23d8ba8 commit a05945a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/deploy/NVA_build/setup_platform.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)