diff options
author | Timo Weingärtner <timo@tiwe.de> | 2014-02-05 15:15:11 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2014-02-05 15:15:11 +0100 |
commit | c4c47613070b81b95434b03b6cda74daa76aada6 (patch) | |
tree | 88abe8cae679e0f91cf613aa7747d39584626dff /update-openssh-known-hosts | |
parent | 17e1ec141ebea9c949dd5bc1933c9a1e057d5a16 (diff) | |
download | openssh-known-hosts-c4c47613070b81b95434b03b6cda74daa76aada6.tar.gz |
make main script configurable via environment
Diffstat (limited to 'update-openssh-known-hosts')
-rwxr-xr-x | update-openssh-known-hosts | 10 |
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" |