summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2014-02-05 15:15:11 +0100
committerTimo Weingärtner <timo@tiwe.de>2014-02-05 15:15:11 +0100
commitc4c47613070b81b95434b03b6cda74daa76aada6 (patch)
tree88abe8cae679e0f91cf613aa7747d39584626dff
parent17e1ec141ebea9c949dd5bc1933c9a1e057d5a16 (diff)
downloadopenssh-known-hosts-c4c47613070b81b95434b03b6cda74daa76aada6.tar.gz
make main script configurable via environment
-rwxr-xr-xupdate-openssh-known-hosts10
1 files changed, 5 insertions, 5 deletions
diff --git a/update-openssh-known-hosts b/update-openssh-known-hosts
index d9ef613..be7e9d7 100755
--- a/update-openssh-known-hosts
+++ b/update-openssh-known-hosts
@@ -2,11 +2,11 @@
set -euC
-CONFDIR=/etc/openssh-known-hosts
-PLUGIN_PATH=/usr/local/share/openssh-known-hosts/plugins:/usr/share/openssh-known-hosts/plugins
-CACHEDIR=/var/cache/openssh-known-hosts
-LOCK=/var/lock/openssh-known-hosts
-OUTFILE=/var/lib/openssh-known-hosts/ssh_known_hosts
+CONFDIR=${CONFDIR:-/etc/openssh-known-hosts}
+PLUGIN_PATH=${PLUGIN_PATH:-/usr/local/share/openssh-known-hosts/plugins:/usr/share/openssh-known-hosts/plugins}
+CACHEDIR=${CACHEDIR:-/var/cache/openssh-known-hosts}
+LOCK=${LOCK:-/var/lock/openssh-known-hosts}
+OUTFILE=${OUTFILE:-/var/lib/openssh-known-hosts/ssh_known_hosts}
path_search () {
search="$1"