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.
This commit is contained in:
Jose Diaz-Gonzalez
2017-04-02 15:07:18 -04:00
committed by GitHub
parent a4b8e59c3f
commit 8677aadad7

2
debian/postinst vendored
View File

@@ -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`