]> git.parisson.com Git - telemeta.git/commitdiff
chown -R media only at first time
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 20 Jan 2016 20:51:12 +0000 (21:51 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 20 Jan 2016 20:51:12 +0000 (21:51 +0100)
app/deploy/start_app.sh

index 405ccb469901243cb7b36c1078331045d34cc83b..e723063ee2161d2d849f279f8bbdce031cc85b33 100644 (file)
@@ -7,8 +7,6 @@ wsgi=$app'/wsgi.py'
 static='/srv/static/'
 media='/srv/media/'
 
-chown -R www-data:www-data $media
-
 # uwsgi params
 port=8000
 processes=8
@@ -29,6 +27,7 @@ python $manage migrate --noinput
 python $manage collectstatic --noinput
 
 if [ ! -f $app/.init ]; then
+ chown -R www-data:www-data $media
  python $manage telemeta-create-admin-user
  python $manage telemeta-create-boilerplate
  python $manage update_index --workers $processes