From cc64aee28824dc3db49737c3b510f4d3604ea8f2 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Tue, 5 May 2026 02:34:22 +0000 Subject: use fqdn everywhere --- authorized_keys.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'authorized_keys.sh') diff --git a/authorized_keys.sh b/authorized_keys.sh index b8a016c..6544416 100755 --- a/authorized_keys.sh +++ b/authorized_keys.sh @@ -16,7 +16,7 @@ if [ "$1" = "new" ]; then if getent passwd "$user"; then exit 0 else - echo "[autopeer $(hostname)] New user being created: $user from $key $connection" | socat stdio "$NOTIFY_TO" + echo "[autopeer $(hostname -f)] New user being created: $user from $key $connection" | socat stdio "$NOTIFY_TO" /usr/sbin/adduser --disabled-password --quiet --comment "created at $(date +%s) by $key ${connection//:/_}" --ingroup autopeer "$user" /usr/sbin/adduser "$user" bird ( umask 0077; touch "/var/log/autopeer/$user".{tim,io}; ) -- cgit v1.3.1-10-gc9f91