diff options
author | Andrew Cady <d@samizdat> | 2021-09-26 21:13:44 -0400 |
---|---|---|
committer | Andrew Cady <d@samizdat> | 2021-09-26 21:13:44 -0400 |
commit | be143ef268140775118d3f1c6da920817f6a2c18 (patch) | |
tree | 2b87fbfaf1742d78174be4d1c162ccbeaffa9644 | |
parent | 3dc140cdcfa14e1a4e00616e3a9dc9694b4c55ed (diff) |
supply $HOSTNAME to dyndns server
note: code to connect to dyndns server is duplicated
in "cryptonomic" binary where this is already done
-rw-r--r-- | selfpublish.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/selfpublish.sh b/selfpublish.sh index b1bde50..b480450 100644 --- a/selfpublish.sh +++ b/selfpublish.sh | |||
@@ -2,6 +2,7 @@ | |||
2 | set -e | 2 | set -e |
3 | 3 | ||
4 | DEFAULT_AUTH_TYPE=ed25519 | 4 | DEFAULT_AUTH_TYPE=ed25519 |
5 | DYNDNSHOST=cryptonomic.net | ||
5 | DEFAULT_UPSTREAM=d@cryptonomic.net:public_git/selfpublish.sh | 6 | DEFAULT_UPSTREAM=d@cryptonomic.net:public_git/selfpublish.sh |
6 | 7 | ||
7 | force() | 8 | force() |
@@ -448,7 +449,7 @@ get_dyndns_domain() | |||
448 | host_keyfile=/etc/ssh/ssh_host_${fragment}_key | 449 | host_keyfile=/etc/ssh/ssh_host_${fragment}_key |
449 | user_keyfile=$HOME/.ssh/id_${fragment} | 450 | user_keyfile=$HOME/.ssh/id_${fragment} |
450 | 451 | ||
451 | set -- -q dyndns@cryptonomic.net | 452 | set -- -q dyndns@"$DYNDNSHOST" "$HOSTNAME" |
452 | 453 | ||
453 | if [ -r "$host_keyfile" ] | 454 | if [ -r "$host_keyfile" ] |
454 | then | 455 | then |