I’m in a bash hook trying to detect if my unit is related or not to something else (in this case Bind9 dns-entry)…
I only found this in the docs :
I tried
< another-relation >-changed.sh
RELATION_LIST=$(relation-ids dns-entry) #This returns `dns-entry:7` .. with 7 being the unit #
RELATION_DETAILS=$(relation-get -r $RELATION_LIST)
it is this second line which gives me a permission denied… what is the right way to check my units relations …and then get more details on that relation if it exists?? thank you.