]> git.parisson.com Git - telemeta.git/commitdiff
Fix #176 but keep import directory untouched
authorThomas Fillon <thomas@parisson.com>
Fri, 2 Jun 2017 13:47:08 +0000 (15:47 +0200)
committerThomas Fillon <thomas@parisson.com>
Fri, 2 Jun 2017 13:47:08 +0000 (15:47 +0200)
app/scripts/app.sh

index 36ca7388268c341d77d2d36d1f61ed24d09b0958..fb3dea75dc798fcf11deb9d22ee828922248604f 100644 (file)
@@ -39,7 +39,7 @@ if [ $REINDEX = "True" ]; then
 fi
 
 # fix media access rights
-find $media -type d -exec chown www-data:www-data {} \;
+find $media -type d -not -path '*/import*' -exec chown www-data:www-data {} \;
 
 # choose dev or prod mode
 if [ "$1" = "--runserver" ]; then