ansible_lxd_tests/Playbooks/local_lxd/roles/lxd/templates/wrapper.sh.j2

16 lines
400 B
Django/Jinja

#!/bin/sh
# {{ ansible_managed }}
# this file was directly copied from an Ubuntu/PopOS installation process
if ! [ -x {{ snap_app_path }} ]; then
echo "" >&2
echo "Command '$0' requires the {{ snap_app }} snap to be installed." >&2
echo "Please install it with:" >&2
echo "" >&2
echo "snap install {{ snap_app }}" >&2
echo "" >&2
exit 1
fi
exec {{ snap_app_path }} "$@"