From: Peter Palfrader Date: Wed, 27 May 2009 19:03:43 +0000 (+0200) Subject: Get filelist from the commandline instead of hardcoding it X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=606e99ee3861e2dc939d6b11e96f3c1b9cc06ec2;p=mirror%2Fdsa-puppet.git Get filelist from the commandline instead of hardcoding it --- diff --git a/modules/geodns/files/common/recvconf b/modules/geodns/files/common/recvconf index e3acbd326..df312e8f8 100755 --- a/modules/geodns/files/common/recvconf +++ b/modules/geodns/files/common/recvconf @@ -9,8 +9,14 @@ set -u ## This text is released under the "three-clause BSD license". ## The full text of the license is available at the end of this file. +if [ "$#" != 1 ]; then + echo "Usage: $0 " >&2 + exit 1 +fi + +FILELIST="$1" + printf "\nrecvconf on %s processing:\n" "$(hostname -s)" -FILELIST=/etc/NOREPLY/recvconf.files temptar="$(mktemp)" chmod 0600 "$temptar"