From 08347ee5401da70623d56a85b45fb7d95ffcb03c Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sun, 24 Nov 2024 09:51:58 +0100 Subject: [PATCH] Fixing the PATH envvar. --- deployment/primary-dnsmanagerd-to-powerdns.sh | 1 + deployment/primary-watchdog.sh | 1 + deployment/secondary-watchdog.sh | 2 ++ 3 files changed, 4 insertions(+) diff --git a/deployment/primary-dnsmanagerd-to-powerdns.sh b/deployment/primary-dnsmanagerd-to-powerdns.sh index e31cf24..f16aa42 100755 --- a/deployment/primary-dnsmanagerd-to-powerdns.sh +++ b/deployment/primary-dnsmanagerd-to-powerdns.sh @@ -1,5 +1,6 @@ #!/bin/sh +export PATH=/bin:/sbin:/usr/bin:/usr/sbin # Copying files from the dnsmanagerd bind9 directory to the powerdns directory. PDNSDIR="/var/powerdns/" DNSMANDIR="/tmp/DATA-dnsmanagerd/bind9-zones/" diff --git a/deployment/primary-watchdog.sh b/deployment/primary-watchdog.sh index 420a86f..bfb6ce2 100755 --- a/deployment/primary-watchdog.sh +++ b/deployment/primary-watchdog.sh @@ -1,6 +1,7 @@ #!/bin/sh # Watchdog for the primary name server. +export PATH=/bin:/sbin:/usr/bin:/usr/sbin REMOTE="gandi" REMOTE_DIR="/var/powerdns/" diff --git a/deployment/secondary-watchdog.sh b/deployment/secondary-watchdog.sh index bc7c05e..84c40c6 100755 --- a/deployment/secondary-watchdog.sh +++ b/deployment/secondary-watchdog.sh @@ -1,6 +1,8 @@ #!/bin/sh # Primary sends files in $DIR. +export PATH=/bin:/sbin:/usr/bin:/usr/sbin + DIR="/var/powerdns/" local_update() {