master
Keith Irwin 2022-09-10 14:35:41 -06:00
parent c573208310
commit 6ed23a9d08
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ printf '%s identified as %s\n' "${ip}" "${username}" >>"${LOGFILE}"
domain="${hostname}.${username}.${TLD}"
# Check if new peer already exists
printf '%s' "${hostnames}"
printf "${hostname}"
printf '%s' "${hostnames}" >>"${LOGFILE}"
printf "${hostname}" >>"${LOGFILE}"
printf '%s' "${hostnames}" | grep -o "${hostname}" && (
printf '%s.%s.%s already exists!\n' "${hostname}" "${username}" "${TLD}" >>"${LOGFILE}"
printf 'Hostname %s already exists!\n' "${hostname}" | "${LIB_DIR}/http_res" 409