#!/bin/sh
# Netify Agent Debian Post-install Script
# Copyright (C) 2016-2022 eGloo Incorporated
#
# This is free software, licensed under the GNU General Public License v3.

if [ -f "/var/lib/netifyd/agent.uuid" ]; then
    mv -f "/var/lib/netifyd/agent.uuid" /etc/netify.d/
fi

if [ -f "/var/lib/netifyd/site.uuid" ]; then
    mv -f "/var/lib/netifyd/site.uuid" /etc/netify.d/
fi

if [ -f "/var/lib/netifyd/app-custom-match.conf" ]; then
    mv -f "/var/lib/netifyd/app-custom-match.conf" /etc/netify.d/netify-sink.conf
fi

rm -f "/var/lib/netifyd/*.csv"

exit 0
