summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@samizdat>2021-09-26 21:13:44 -0400
committerAndrew Cady <d@samizdat>2021-09-26 21:13:44 -0400
commitbe143ef268140775118d3f1c6da920817f6a2c18 (patch)
tree2b87fbfaf1742d78174be4d1c162ccbeaffa9644
parent3dc140cdcfa14e1a4e00616e3a9dc9694b4c55ed (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.sh3
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 @@
2set -e 2set -e
3 3
4DEFAULT_AUTH_TYPE=ed25519 4DEFAULT_AUTH_TYPE=ed25519
5DYNDNSHOST=cryptonomic.net
5DEFAULT_UPSTREAM=d@cryptonomic.net:public_git/selfpublish.sh 6DEFAULT_UPSTREAM=d@cryptonomic.net:public_git/selfpublish.sh
6 7
7force() 8force()
@@ -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