Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions root/etc/s6-overlay/s6-rc.d/init-permissions/run
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
chmod -R 644 /etc/logrotate.d
fi

if [[ -f "/config/log/logrotate.status" ]]; then
chmod 600 /config/log/logrotate.status
fi

chmod -R g+w \
/config/nginx

if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
lsiown -R abc:abc \
/config/keys \
Expand All @@ -19,10 +26,3 @@ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
lsiown abc:abc \
/config/www
fi

if [[ -f "/config/log/logrotate.status" ]]; then
chmod 600 /config/log/logrotate.status
fi

chmod -R g+w \
/config/nginx
Loading