From 5a6f1de4ddaf0ce8ecfd82acb0dce54c1e9d6d14 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Wed, 19 Sep 2018 13:21:34 -0400 Subject: [PATCH] Ensure app dir and files in its root are also chowned --- script/fix_permissions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/fix_permissions b/script/fix_permissions index 72d37519..7645a0ab 100755 --- a/script/fix_permissions +++ b/script/fix_permissions @@ -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}