iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shellcheck, better automated upgrades
[distro-setup]
/
dynamic-ip-update
diff --git
a/dynamic-ip-update
b/dynamic-ip-update
index 007570cd53576637078596f0ce89ab326f20f425..3ba7f34998098fab2ec80be10fdd9b165402ec40 100755
(executable)
--- a/
dynamic-ip-update
+++ b/
dynamic-ip-update
@@
-54,7
+54,9
@@
EOF
if $up4; then
cat >>$f <<EOF
update delete b8.nz. A
if $up4; then
cat >>$f <<EOF
update delete b8.nz. A
+update delete wrt.b8.nz. A
update add b8.nz. 300 A $ip4
update add b8.nz. 300 A $ip4
+update add wrt.b8.nz. 300 A $ip4
EOF
fi
EOF
fi
@@
-88,7
+90,8
@@
exit
mkc /p/c/machine_specific/li/filesystem/etc/bind
s dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST b8.nz
mkc /p/c/machine_specific/li/filesystem/etc/bind
s dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST b8.nz
-s chown $USER:$USER *
+user=$(id -un)
+s chown $user:$user *
f=key.b8.nz
f=key.b8.nz