From 8677aadad77e0cb5f9914051aa4c5c2c648e1c5f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 2 Apr 2017 15:07:18 -0400 Subject: [PATCH] fix: explicitly chown data and data/storage directories Doing a recursive chown will otherwise screw up dockerfile-based app storage when the uid does not map to herokuish or similar. --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 424c82322..e6a1f2412 100755 --- a/debian/postinst +++ b/debian/postinst @@ -35,7 +35,7 @@ case "$1" in echo "Setting up storage directories" mkdir -p ${DOKKU_LIB_ROOT}/data ${DOKKU_LIB_ROOT}/data/storage - chown dokku:dokku -R ${DOKKU_LIB_ROOT}/data + chown dokku:dokku ${DOKKU_LIB_ROOT}/data ${DOKKU_LIB_ROOT}/data/storage echo "Setting up plugin directories" # should be replaced by `plugn init`