28 lines
674B

  1. #!/usr/bin/env bash
  2. if [ -z "$1" ]; then
  3. echo "Vous devez ajouter en paramètre le nom de l'utilisateur à appliquer aux dossiers"
  4. else
  5. sudo chown $1:www-data . -R
  6. sudo chown $1:www-data frontend/runtime/ -R
  7. sudo chmod 775 frontend/runtime/ -R
  8. sudo chown $1:www-data frontend/web/assets/ -R
  9. sudo chmod 775 frontend/web/assets/ -R
  10. sudo chown $1:www-data backend/runtime/ -R
  11. sudo chmod 775 backend/runtime/ -R
  12. sudo chown $1:www-data backend/web/assets/ -R
  13. sudo chmod 775 backend/web/assets/ -R
  14. sudo chown $1:www-data producer/runtime/ -R
  15. sudo chmod 775 producer/runtime/ -R
  16. sudo chown $1:www-data producer/web/assets/ -R
  17. sudo chmod 775 producer/web/assets/ -R
  18. fi