add/adjust docker exec scripts

This commit is contained in:
Ecotroph.net Admin 2023-02-26 10:08:23 -05:00
parent b4883fab59
commit eb2b4bd1a3
2 changed files with 7 additions and 3 deletions

4
run_named-checkconf.sh Executable file
View File

@ -0,0 +1,4 @@
#! /bin/bash
[ -x "$(which docker 2>/dev/null)" ] && DOCKER=docker
[ -x "$(which podman 2>/dev/null)" ] && DOCKER=podman
$DOCKER exec bind9 named-checkconf "$@"

View File

@ -1,4 +1,4 @@
#! /bin/bash
[ -x "$(which docker)" ] && DOCKER=docker
[ -x "$(which podman)" ] && DOCKER=podman
[ -x "$(which docker 2>/dev/null)" ] && DOCKER=docker
[ -x "$(which podman 2>/dev/null)" ] && DOCKER=podman
$DOCKER exec bind9 rndc "$@"