templates/install/process.finalise.sh.twig line 1

Open in your IDE?
  1. # set projetc access rights
  2. # add current user to www-data group and inverse for complient access file rights
  3. sudo usermod -a -G $(whoami) www-data
  4. sudo usermod -a -G www-data $(whoami)
  5. # set owner of project as www-data
  6. sudo chown -R www-data:www-data $projectDestPath
  7. sudo chmod -R u+rw,g+srw,o+r $projectDestPath
  8. # permissions for futures files and folder.
  9. sudo setfacl -dR -m u:"www-data":rwX -m u:$(whoami):rwX $projectDestPath
  10. # permissions for existing files and folder (maybe duplicate with previous chmod)
  11. sudo setfacl -R -m u:"www-data":rwX -m u:$(whoami):rwX $projectDestPath