Commit c902db39 authored by Marco Marinello's avatar Marco Marinello

Fix output file in fuss-fucc

Signed-off-by: Marco Marinello's avatarMarco Marinello <mmarinello@sezf.it>
parent 5bc42c94
Pipeline #41 passed with stages
in 15 minutes and 2 seconds
......@@ -36,7 +36,7 @@ EOF
for fqdn in $PCS; do
client=$(echo $fqdn | cut -d '.' -f 1)
# Check if the host has already been mapped
if ! grep $client list.txt 2>&1 > /dev/null; then
if ! grep $client ${OUTFILE} 2>&1 > /dev/null; then
# Find that MAC
MAC=$(sqlite3 $DB <<EOF
select value from client_component where hostname = "$fqdn" and component like "mac%";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment