]> git.parisson.com Git - telemeta.git/commitdiff
recursive chown on media (could fix #112)
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 17 May 2016 08:54:20 +0000 (10:54 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 17 May 2016 08:54:29 +0000 (10:54 +0200)
app/scripts/app.sh

index 43dec020c0d65c6ae97c7b25ddfedb9a0bedbd2c..25947c53a2bc5ea71a9eaec08d5d49e4ffd951a3 100644 (file)
@@ -35,7 +35,7 @@ python $manage telemeta-create-admin-user
 python $manage telemeta-create-boilerplate
 
 # fix media access rights
-chown www-data:www-data $media
+chown -R www-data:www-data $media
 for dir in $(ls $media); do
     if [ ! $(stat -c %U $media/$dir) = 'www-data' ]; then
         chown www-data:www-data $media/$dir