aboutsummaryrefslogtreecommitdiff
path: root/authorized_keys.sh
diff options
context:
space:
mode:
authorGravatar steering72532026-05-05 02:34:22 +0000
committerGravatar steering72532026-05-05 02:34:22 +0000
commitcc64aee28824dc3db49737c3b510f4d3604ea8f2 (patch)
treede9eb729854ccedb94be317e459347a4d2e66cae /authorized_keys.sh
parentlicense (diff)
use fqdn everywhere
Diffstat (limited to 'authorized_keys.sh')
-rwxr-xr-xauthorized_keys.sh2
1 files changed, 1 insertions, 1 deletions
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}; )