mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
command-scripting: remove trailing whitespaces
This commit is contained in:
parent
66fcc79035
commit
c523a87aaa
@ -142,20 +142,20 @@ The default directories where your custom Scripts should be located are:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
/config/scripts/commit/pre-hooks.d - Directory with scripts that run before
|
/config/scripts/commit/pre-hooks.d - Directory with scripts that run before
|
||||||
each commit.
|
each commit.
|
||||||
|
|
||||||
/config/scripts/commit/post-hooks.d - Directory with scripts that run after
|
/config/scripts/commit/post-hooks.d - Directory with scripts that run after
|
||||||
each commit.
|
each commit.
|
||||||
|
|
||||||
Scripts are run in alphabetical order. Their names must consist entirely of
|
Scripts are run in alphabetical order. Their names must consist entirely of
|
||||||
ASCII upper- and lower-case letters,ASCII digits, ASCII underscores, and
|
ASCII upper- and lower-case letters,ASCII digits, ASCII underscores, and
|
||||||
ASCII minus-hyphens.No other characters are allowed.
|
ASCII minus-hyphens.No other characters are allowed.
|
||||||
|
|
||||||
.. note:: Custom scripts are not executed with root privileges
|
.. note:: Custom scripts are not executed with root privileges
|
||||||
(Use sudo inside if this is necessary).
|
(Use sudo inside if this is necessary).
|
||||||
|
|
||||||
A simple example is shown below, where the ops command executed in
|
A simple example is shown below, where the ops command executed in
|
||||||
the post-hook script is "show interfaces".
|
the post-hook script is "show interfaces".
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
@ -170,7 +170,7 @@ the post-hook script is "show interfaces".
|
|||||||
eth2 - u/u
|
eth2 - u/u
|
||||||
eth3 - u/u
|
eth3 - u/u
|
||||||
lo 203.0.113.5/24 u/u
|
lo 203.0.113.5/24 u/u
|
||||||
|
|
||||||
Preconfig on boot
|
Preconfig on boot
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
@ -185,9 +185,9 @@ The default file looks like this:
|
|||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# This script is executed at boot time before VyOS configuration is applied.
|
# This script is executed at boot time before VyOS configuration is applied.
|
||||||
# Any modifications required to work around unfixed bugs or use
|
# Any modifications required to work around unfixed bugs or use
|
||||||
# services not available through the VyOS CLI system can be placed here.
|
# services not available through the VyOS CLI system can be placed here.
|
||||||
|
|
||||||
|
|
||||||
Postconfig on boot
|
Postconfig on boot
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user