Skip to content

Commit

Permalink
chown only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Feb 12, 2024
1 parent e2f4250 commit ad9ba63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/init-setup-app/run
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ ENVIRONMENT APP

if [[ ! -f "${CONFIG_DIR}/unpackerr.conf" ]]; then
cp "${APP_DIR}/unpackerr.conf.example" "${CONFIG_DIR}/unpackerr.conf"
chown hotio:hotio "${CONFIG_DIR}/unpackerr.conf"
find "${CONFIG_DIR}/unpackerr.conf" -maxdepth 0 \( ! -user hotio -or ! -group hotio \) -exec chown hotio:hotio {} +
fi

0 comments on commit ad9ba63

Please sign in to comment.