Skip to content

Commit

Permalink
Delete spaces that were not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
DFolchA committed Sep 23, 2019
1 parent 0961e33 commit 7dbf469
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion debs/SPECS/3.10.0/wazuh-agent/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.10.0/wazuh-agent/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions debs/SPECS/3.11.0/wazuh-agent/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7dbf469

Please sign in to comment.