Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from godmodelabs/find-first-then-chown
Browse files Browse the repository at this point in the history
Speed up startup by only chown-ing files that have incorrect ownership
  • Loading branch information
mx-shift authored Apr 11, 2019
2 parents 2b52b1d + b9b909b commit 9102689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/cont-init.d/20-config
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ mkdir -p \
[[ ! -f /config/data/ufv-truststore ]] && cp -f ${BASEDIR}/etc/ufv-truststore /config/data/

# permissions
chown -R unifi-video:unifi-video /config
find /config ! -user unifi-video ! -group unifi-video -exec chown -R unifi-video:unifi-video {} \;

0 comments on commit 9102689

Please sign in to comment.