In file: /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper
Commit 9e74ad7 changed the vyos-load-config.py script directory prefix to use ${vyos_libexec_dir}. However, the ${vyos_libexec_dir} variable is not exported at the start of the wrapper script.
When executing the load command over an SSH session it tries to execute the vyos-load-config.py script from root, and not /usr/libexec/vyos where the script resides
$ /opt/scripts/vyos/reset-router-config.pl --debug [--] Resetting VyOS router configuration... [??] Connection vyos:[email protected] established successfully [??] Command : /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper begin [??] Command : /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper load config.boot.sauron.master /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper: line 84: /vyos-load-config.py: No such file or directory [??] Error running command: /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper load config.boot.sauron.master [??] child exited with code 127 [??] Command : /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper commit [??] Command : /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper end