From ff25674ce7704ebbca788e9b2125bc4537bbfcc2 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 13 Oct 2020 15:18:29 -0400 Subject: fix --- selfpublish.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/selfpublish.sh b/selfpublish.sh index bbef8cc..64ccd37 100644 --- a/selfpublish.sh +++ b/selfpublish.sh @@ -318,6 +318,8 @@ get_sshfp() KEY_FILE=/etc/ssh/ssh_host_${DEFAULT_AUTH_TYPE}_key +delegate_command=/usr/lib/cryptonomic/cryptonomic-$1 + if [ $# = 0 -o "$1" = hostname ] then @@ -338,9 +340,10 @@ then su -c "$(bash -c 'printf "%q " "$@"' bash "$@")" fi -elif [ -f /usr/lib/cryptonomic/cryptonomic-"$1" ] +elif [ -x "$delegate_command" ] then - exec /usr/lib/cryptonomic/cryptonomic-"$1" "$@" + shift + exec "$delegate_command" "$@" else echo "Usage: $0 [dyndns|hostname|gpg]" >&2 -- cgit v1.2.3