Commit bcc8215ac1fc1ed229ecdf8019e12549ace33130

Authored by Thibaud Ajas
1 parent 07632060

amélioration script d'installation - droits des dossiers tmp/ et logs/

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
install/installation.sh
... ... @@ -372,6 +372,16 @@ fi
372 372 cd ../
373 373  
374 374 echo
  375 +echo "Mise à jour des droits des dossiers tmp et logs"
  376 +echo
  377 +
  378 +HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
  379 +setfacl -R -m u:${HTTPDUSER}:rwx tmp
  380 +setfacl -R -d -m u:${HTTPDUSER}:rwx tmp
  381 +setfacl -R -m u:${HTTPDUSER}:rwx logs
  382 +setfacl -R -d -m u:${HTTPDUSER}:rwx logs
  383 +
  384 +echo
375 385 echo "*** FIN DE L'INSTALLATION ***"
376 386 echo
377 387  
... ...