Ensure app dir and files in its root are also chowned

This commit is contained in:
Devon Mackay 2018-09-19 13:21:34 -04:00 committed by Patrick Smith
parent 1a68458a12
commit 5a6f1de4dd

View File

@ -16,6 +16,8 @@ if [ "${APP_USER}x" = "x" ] || [ "${APP_GROUP}x" = "x" ]; then
exit 1
fi
chown "${APP_USER}:${APP_GROUP}" .
chown "${APP_USER}:${APP_GROUP}" *
for subdir in $(find . -type d -maxdepth 1 | grep -Ee '.[^/]' | grep -Fve 'node_modules')
do
chown "${APP_USER}:${APP_GROUP}" -R ${subdir}