diff --git a/debs/SPECS/3.10.0/wazuh-agent/debian/postinst b/debs/SPECS/3.10.0/wazuh-agent/debian/postinst index 2b670e2259..9a05e5faf4 100644 --- a/debs/SPECS/3.10.0/wazuh-agent/debian/postinst +++ b/debs/SPECS/3.10.0/wazuh-agent/debian/postinst @@ -142,7 +142,7 @@ case "$1" in # Service if [ -f /etc/init.d/wazuh-agent ]; then - if [ -d /run/systemd/system ] ; then + if [ -d /run/systemd/system ]; then systemctl enable wazuh-agent > /dev/null 2>&1 fi update-rc.d wazuh-agent defaults > /dev/null 2>&1 diff --git a/debs/SPECS/3.10.0/wazuh-agent/debian/postrm b/debs/SPECS/3.10.0/wazuh-agent/debian/postrm index d0230ef47d..85fc0bc23f 100644 --- a/debs/SPECS/3.10.0/wazuh-agent/debian/postrm +++ b/debs/SPECS/3.10.0/wazuh-agent/debian/postrm @@ -22,7 +22,7 @@ case "$1" in rm -rf ${WAZUH_TMP_DIR} fi - if [ -d /run/systemd/system ] ; then + if [ -d /run/systemd/system ]; then systemctl disable wazuh-agent > /dev/null 2>&1 systemctl daemon-reload systemctl reset-failed diff --git a/debs/SPECS/3.11.0/wazuh-agent/debian/postrm b/debs/SPECS/3.11.0/wazuh-agent/debian/postrm index f2f29a57b7..2c73048fa4 100644 --- a/debs/SPECS/3.11.0/wazuh-agent/debian/postrm +++ b/debs/SPECS/3.11.0/wazuh-agent/debian/postrm @@ -22,12 +22,8 @@ case "$1" in rm -rf ${WAZUH_TMP_DIR} fi -<<<<<<< HEAD if [ ! -z "$(file /sbin/init |grep "systemd")" ]; then -======= - if [ -d /run/systemd/system ] ; then ->>>>>>> e16192ef9ebe2c410f06529c2691d1b566e4ef09 systemctl disable wazuh-agent > /dev/null 2>&1 systemctl daemon-reload systemctl reset-failed