]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Get filelist from the commandline instead of hardcoding it
authorPeter Palfrader <peter@palfrader.org>
Wed, 27 May 2009 19:03:43 +0000 (21:03 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 27 May 2009 19:03:43 +0000 (21:03 +0200)
modules/geodns/files/common/recvconf

index e3acbd326ba36a7c804c1c3bf0dfe2c74c7cc295..df312e8f8204bf3835cc18cd78af878e52f53741 100755 (executable)
@@ -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 <recvconf.files>" >&2
+       exit 1
+fi
+
+FILELIST="$1"
+
 printf "\nrecvconf on %s processing:\n" "$(hostname -s)"
-FILELIST=/etc/NOREPLY/recvconf.files
 
 temptar="$(mktemp)"
 chmod 0600 "$temptar"