Skip to content

Commit dbee0be

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: updating instance Avoid backticks in shell scripts
2 parents a7360ed + 7b03b33 commit dbee0be

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

setup/file_permissions.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ needed permissions:
3434
$ rm -rf var/cache/*
3535
$ rm -rf var/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`
38-
$ sudo chmod -R +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
39-
$ sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var
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+
$ sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
39+
$ sudo chmod +a "$(whoami) allow delete,write,append,file_inherit,directory_inherit" var
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 var
54-
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var
53+
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var
54+
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var
5555
5656
.. note::
5757

templating/app_variable.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ How to Access the User, Request, Session & more in Twig via the ``app`` Variable
66

77
During each request, Symfony will set a global template variable ``app``
88
in both Twig and PHP template engines by default. The ``app`` variable
9-
is a :class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables`
9+
is a :class:`Symfony\\Bridge\\Twig\\AppVariable`
1010
instance which will give you access to some application specific variables
1111
automatically:
1212

0 commit comments

Comments
 (0)