@@ -34,9 +34,9 @@ needed permissions:
34
34
$ rm -rf app/cache/*
35
35
$ rm -rf app/logs/*
36
36
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)
38
38
$ 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
40
40
41
41
3. Using ACL on a System that Supports ``setfacl `` (Linux/BSD)
42
42
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -48,10 +48,10 @@ following script to determine your web server user and grant the needed permissi
48
48
49
49
.. code-block :: terminal
50
50
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)
52
52
# 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
55
55
56
56
.. note ::
57
57
0 commit comments