<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyatta-cfg.git/scripts/vyatta-cfg-cmd-wrapper, branch current</title>
<subtitle>Vyatta configuration system (mirror of https://github.com/vyos/vyatta-cfg.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyatta-cfg.git/atom?h=current</id>
<link rel='self' href='https://git.amelek.net/vyos/vyatta-cfg.git/atom?h=current'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/'/>
<updated>2023-08-24T03:04:18+00:00</updated>
<entry>
<title>save-config: T4292: use vyos-save-config.py</title>
<updated>2023-08-24T03:04:18+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2023-08-24T03:04:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=f56f01300512a3083d444d19fbba8323fbce540f'/>
<id>urn:sha1:f56f01300512a3083d444d19fbba8323fbce540f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5291: vyatta-cfg-cmd-wrapper missing ${vyos_libexec_dir} variable</title>
<updated>2023-06-14T14:25:49+00:00</updated>
<author>
<name>cuongdt1994</name>
<email>63875204+cuongdt1994@users.noreply.github.com</email>
</author>
<published>2023-06-14T14:25:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=3d03a0b9c9e53976de377332fb334307c7e88f06'/>
<id>urn:sha1:3d03a0b9c9e53976de377332fb334307c7e88f06</id>
<content type='text'>
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:vyos@10.35.22.1 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
</content>
</entry>
<entry>
<title>Revert "save-config: T4292: use vyos-save-config.py"</title>
<updated>2022-03-10T18:35:10+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2022-03-10T16:23:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=f474a575f23465dfe93ba2ae44a8076659c5546a'/>
<id>urn:sha1:f474a575f23465dfe93ba2ae44a8076659c5546a</id>
<content type='text'>
This reverts commit 18e2864769226e39479cf3fc3be2dc5ec67acac1.
Revert while investigating failure in vyos-configtest.
</content>
</entry>
<entry>
<title>save-config: T4292: use vyos-save-config.py</title>
<updated>2022-03-08T17:51:31+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2022-03-08T17:51:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=18e2864769226e39479cf3fc3be2dc5ec67acac1'/>
<id>urn:sha1:18e2864769226e39479cf3fc3be2dc5ec67acac1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T1424: Rewrite the config load script</title>
<updated>2019-10-01T16:31:42+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@sentrium.io</email>
</author>
<published>2019-10-01T16:31:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=9e74ad7ef0c043bc7bd1fa14b6708cc11ab3bc5c'/>
<id>urn:sha1:9e74ad7ef0c043bc7bd1fa14b6708cc11ab3bc5c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bugfix 6767: Move log files from /tmp to /var/log/vyatta.</title>
<updated>2011-06-15T23:59:39+00:00</updated>
<author>
<name>Bob Gilligan</name>
<email>gilligan@vyatta.com</email>
</author>
<published>2011-06-15T23:59:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=3fc5d448cdc043c815b177ade72305d970c9f84c'/>
<id>urn:sha1:3fc5d448cdc043c815b177ade72305d970c9f84c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Propgate error code from my_commit in command wrapper</title>
<updated>2010-12-01T04:44:42+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>stephen.hemminger@vyatta.com</email>
</author>
<published>2010-12-01T04:44:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=5423665a6424de7dca6efec0ad8b2d93ca267326'/>
<id>urn:sha1:5423665a6424de7dca6efec0ad8b2d93ca267326</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use exec to get proper exit status</title>
<updated>2010-11-24T19:51:24+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>stephen.hemminger@vyatta.com</email>
</author>
<published>2010-11-24T02:38:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=36a92e3fe4241a6cc51319d7d78f2e732afa5bfc'/>
<id>urn:sha1:36a92e3fe4241a6cc51319d7d78f2e732afa5bfc</id>
<content type='text'>
No need to save exit code and then call exit. Use 'exec'
to get tail recursion style optimization of shell functions.

Also, rename the log file for commit for /tmp/bar to something
we might actually want to tell customers about.
</content>
</entry>
<entry>
<title>Add COMMIT_VIA environment variable.</title>
<updated>2010-11-23T23:38:40+00:00</updated>
<author>
<name>Stig Thormodsrud</name>
<email>stig@vyatta.com</email>
</author>
<published>2010-11-23T23:38:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=2ffd41bc39e74d49e4e6d3d135c7a94dc1ebc43d'/>
<id>urn:sha1:2ffd41bc39e74d49e4e6d3d135c7a94dc1ebc43d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove error flag now that error locations will be exposed by default.</title>
<updated>2010-11-16T21:18:15+00:00</updated>
<author>
<name>Michael Larson</name>
<email>mike@vyatta.com</email>
</author>
<published>2010-11-16T21:18:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyatta-cfg.git/commit/?id=cd2ad188bbef4245f64484dc127c12bfd6e9d706'/>
<id>urn:sha1:cd2ad188bbef4245f64484dc127c12bfd6e9d706</id>
<content type='text'>
</content>
</entry>
</feed>
