@@ -34,9 +34,9 @@ needed permissions:
3434 $ rm -rf app/cache/*
3535 $ rm -rf app/logs/*
3636
37- $ HTTPDUSER=` ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
37+ $ HTTPDUSER=$( ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1)
3838 $ sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
39- $ sudo chmod +a "` whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
39+ $ sudo chmod +a "$( whoami) allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
4040
4141 3. Using ACL on a System that Supports ``setfacl `` (Linux/BSD)
4242~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -48,10 +48,10 @@ following script to determine your web server user and grant the needed permissi
4848
4949.. code-block :: terminal
5050
51- $ HTTPDUSER=` ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
51+ $ HTTPDUSER=$( ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1)
5252 # if this doesn't work, try adding `-n` option
53- $ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:` whoami` :rwX app/cache app/logs
54- $ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:` whoami` :rwX app/cache app/logs
53+ $ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$( whoami) :rwX app/cache app/logs
54+ $ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$( whoami) :rwX app/cache app/logs
5555
5656 .. note ::
5757
0 commit comments