github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/testcharms/charms/ubuntu-plus/dispatch (about) 1 #!/bin/sh 2 name=`echo $JUJU_DISPATCH_PATH` 3 # only call the hook specified in JUJU_DISPATCH_PATH if it exists, 4 # otherwise juju will assume the hook has failed and keep retrying. 5 if [ -f "$JUJU_DISPATCH_PATH" ]; then 6 juju-log -l INFO "Calling $name, from dispatch" 7 exec $JUJU_DISPATCH_PATH "$@" 8 else 9 juju-log -l INFO "Dispatch skipping: $name does not exist." 10 fi 11