# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    conf_path = makepath("/", "var", "ossec", "etc")
    # Installing the software
    install_apt("./" + glob.glob("wazuh-agent*_amd64.deb")[0])
    filecopyto("ossec.conf", conf_path)
    run("systemctl enable wazuh-agent")
    run("systemctl restart wazuh-agent")
