diff --git a/back/srv/dashboard/del b/back/srv/dashboard/del index 915fdcf..9bf4d6d 100755 --- a/back/srv/dashboard/del +++ b/back/srv/dashboard/del @@ -53,9 +53,9 @@ if ! peer="$("${LIB_DIR}/wg_peer_list" "${ip}" 'tsv' | grep "${pubkey}")"; then printf 'Peer not found\n' | "${LIB_DIR}/http_res" 404 exit 6 fi -domain="$(<<"${peer}" cut -f1)" -ipv4="$(<<"${peer}" cut -f2)" -ipv6="$(<<"${peer}" cut -f3)" +domain="$(<<<"${peer}" cut -f1)" +ipv4="$(<<<"${peer}" cut -f2)" +ipv6="$(<<<"${peer}" cut -f3)" if ! printf 'Delete request was for %s %s %s\n' "${domain:?}" "${ipv4:?}" "${ipv6:?}" >>"${LOGFILE}"; then printf 'ERROR! Failed to collect peer data: %s %s %s\n' "${domain}" "${ipv4}" "${ipv6}" >>"${LOGFILE}" printf 'Failed to collect peer data\n' | "${LIB_DIR}/http_res" 500