Skip to content

Commit

Permalink
Merge pull request #182 from linuxserver/move-chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Jan 19, 2025
2 parents 8346afc + d74bed6 commit e848a85
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit e848a85

Please sign in to comment.