diff options
| author | 2026-05-05 02:34:22 +0000 | |
|---|---|---|
| committer | 2026-05-05 02:34:22 +0000 | |
| commit | cc64aee28824dc3db49737c3b510f4d3604ea8f2 (patch) | |
| tree | de9eb729854ccedb94be317e459347a4d2e66cae /authorized_keys.sh | |
| parent | license (diff) | |
use fqdn everywhere
Diffstat (limited to 'authorized_keys.sh')
| -rwxr-xr-x | authorized_keys.sh | 2 |
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}; ) |
