summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiudmylaNad <l.nadolina@vyos.io>2026-03-16 14:11:02 +0100
committerGitHub <noreply@github.com>2026-03-16 13:11:02 +0000
commita7b27d5ca0535a22d40abc213c763b6d6b570ede (patch)
tree673886186400840b3ae2a7f88d9e1438e787239f
parent486164be72f0632b96bd4bb29cdab9f2c4d1d978 (diff)
downloadvyos-documentation-a7b27d5ca0535a22d40abc213c763b6d6b570ede.tar.gz
vyos-documentation-a7b27d5ca0535a22d40abc213c763b6d6b570ede.zip
DOC: Add information about execute permissions. (#1796)
-rw-r--r--docs/automation/command-scripting.rst13
-rw-r--r--docs/configuration/highavailability/index.rst8
2 files changed, 21 insertions, 0 deletions
diff --git a/docs/automation/command-scripting.rst b/docs/automation/command-scripting.rst
index cc67132c..0e60e6e1 100644
--- a/docs/automation/command-scripting.rst
+++ b/docs/automation/command-scripting.rst
@@ -17,6 +17,19 @@ To include VyOS specific functions and aliases you need to ``source
source /opt/vyatta/etc/functions/script-template
exit
+Script execute permissions
+--------------------------
+
+Simply placing script files in ``/config/scripts/`` does not mean the system
+can execute them.
+
+To make your scripts executable, grant them **execute permissions**. Use the
+following command:
+
+.. code-block:: none
+
+ chmod +x /config/scripts/script-name.sh
+
Run configuration commands
--------------------------
diff --git a/docs/configuration/highavailability/index.rst b/docs/configuration/highavailability/index.rst
index a7683ef3..40465c30 100644
--- a/docs/configuration/highavailability/index.rst
+++ b/docs/configuration/highavailability/index.rst
@@ -308,6 +308,14 @@ execute custom checks in addition to the master router reachability. Transition
scripts are executed when VRRP state changes from master to backup or fault and
vice versa and can be used to enable or disable certain services, for example.
+.. note:: Simply placing script files in ``/config/scripts/`` does not mean the
+ system can execute them. To make custom scripts executable, grant them
+ **execute permissions**. Use the following command:
+
+ .. code-block:: none
+
+ chmod +x /config/scripts/script-name.sh
+
.. warning:: It is not recommended to change VRRP configuration inside health-check
and transition scripts.