To enable commit scripts:
For information about writing commit scripts, see the JUNOS Configuration and Diagnostic Automation Guide.
Only users with superuser privileges can access and edit files in the /var/db/scripts/commit directory.
Table 84: Enabling Commit Scripts