mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #36478 from rallytime/fix-36475
Add the "bash" option to the "code-block"directive.
This commit is contained in:
commit
ec4f4f49ca
1 changed files with 3 additions and 2 deletions
|
@ -786,7 +786,8 @@ steps to this process:
|
|||
#!/usr/bin/env sh
|
||||
salt-call event.fire_master update salt/fileserver/gitfs/update
|
||||
|
||||
b. To enable other git users to run the hook after a `push`, use sudo in the hook script:
|
||||
b. To enable other git users to run the hook after a `push`, use sudo in the hook script:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
#!/usr/bin/env sh
|
||||
|
@ -795,7 +796,7 @@ steps to this process:
|
|||
4. If using sudo in the git hook (above), the policy must be changed to permit all users to fire the event.
|
||||
Add the following policy to the sudoers file on the git server.
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: bash
|
||||
|
||||
Cmnd_Alias SALT_GIT_HOOK = /bin/salt-call event.fire_master update salt/fileserver/gitfs/update
|
||||
Defaults!SALT_GIT_HOOK !requiretty
|
||||
|
|
Loading…
Add table
Reference in a new issue