]> git.parisson.com Git - telemeta.git/commitdiff
Modify app.sh (merge Parisson)
authormathieu <mathieu.boye28@gmail.com>
Thu, 19 May 2016 08:26:33 +0000 (10:26 +0200)
committermathieu <mathieu.boye28@gmail.com>
Thu, 19 May 2016 08:26:33 +0000 (10:26 +0200)
1  2 
app/scripts/app.sh

index 46b9b008253c20b786e926ec0133c2b1dc2d0db3,25947c53a2bc5ea71a9eaec08d5d49e4ffd951a3..4636b6cbea40c71a9c1a6f99896d9b244f827ff8
@@@ -34,12 -34,8 +34,12 @@@ python $manage collectstatic --noinpu
  python $manage telemeta-create-admin-user
  python $manage telemeta-create-boilerplate
  
 +if [ $REINDEX = "True" ]; then
 +    python $manage rebuild_index --noinput
 +fi
 +
  # 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