Update container command is incorrect
vyos@vyos:~$ update container image stunmesh -vbash: syntax error near unexpected token `then'
Fix:
- update container image stunmesh
- show environment sensors
- show log cert
Update container command is incorrect
vyos@vyos:~$ update container image stunmesh -vbash: syntax error near unexpected token `then'
Fix:
Workaround:
vi /opt/vyatta/share/vyatta-op/templates/update/container/image/node.tag/node.def
Replace the run command with
bash -c 'if cli-shell-api existsActive container name "'$4'"; then podman pull $(cli-shell-api returnActiveValue container name "'$4'" image); else echo "Container '$4' does not exist"; fi'
Full file will be like:
help: Update container image allowed: ls /opt/vyatta/config/active/container/name 2>/dev/null run: bash -c 'if cli-shell-api existsActive container name "'$4'"; then podman pull $(cli-shell-api returnActiveValue container name "'$4'" image); else echo "Container '$4' does not exist"; fi'