Resolve broken zaqar container caused by logging issues
The zaqar container is broken due to the log file being owned by root. When the zaqar-server log file is unabnle to be written to by the zaqar process it causes a traceback resulting in 500 errors. This change ensures that the zaqar log directory has the proper permissions and that the log file within the directory is created when the container is started. A sticky bit is being used on the zaqar log directory to ensure all files created within the directory retain group expected permissions in almost all circumstances. Change-Id: I63442f0bdec11179c361f503906166f75c5e0355 Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
parent
128a9e72b7
commit
4579d42e8d
@ -278,7 +278,7 @@ outputs:
|
||||
volumes:
|
||||
- /var/log/containers/zaqar:/var/log/zaqar
|
||||
- /var/log/containers/httpd/zaqar:/var/log/httpd
|
||||
command: ['/bin/bash', '-c', 'chown -R zaqar:zaqar /var/log/zaqar']
|
||||
command: ['/bin/bash', '-c', 'chmod 2755 /var/log/zaqar; touch /var/log/zaqar/zaqar-server.log; chown -R zaqar:zaqar /var/log/zaqar']
|
||||
step_3:
|
||||
zaqar_db_sync:
|
||||
image: *zaqar_image
|
||||
|
Loading…
Reference in New Issue
Block a user