Skip to content

Commit

Permalink
Remove all the from /tmp/wazuh-* #23
Browse files Browse the repository at this point in the history
  • Loading branch information
BraulioV committed Sep 18, 2018
1 parent 6ddad69 commit f5d051f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion debs/SPECS/3.7.0/wazuh-api/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ case "$1" in
OS=$(lsb_release -si)
DIR="/var/ossec"
WAZUH_API_DIR="${DIR}/api"
WAZUH_TMP_DIR="/tmp/wazuh-api"
WAZUH_TMP_DIR="${DIR}/tmp/api_installation_files"
USER="ossec"
GROUP="ossec"
OSMYSHELL="/sbin/nologin"
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.7.0/wazuh-api/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

DIR="/var/ossec"
WAZUH_API_DIR="${DIR}/api"
WAZUH_TMP_DIR="/tmp/wazuh-api"
WAZUH_TMP_DIR="${DIR}/tmp/api_installation_files"

set -e

Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.7.0/wazuh-api/debian/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
set -e

# configuration variables
WAZUH_TMP_DIR="/tmp/wazuh-api"
DIR="/var/ossec"
WAZUH_TMP_DIR="${DIR}/tmp/api_installation_files"

# environment configuration
if [ ! -d ${WAZUH_TMP_DIR} ]; then
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.7.0/wazuh-manager/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ case "$1" in
USER_MAIL="ossecm"
USER_REM="ossecr"
GROUP="ossec"
WAZUH_TMP_DIR="/tmp/wazuh-manager"
WAZUH_TMP_DIR="${DIR}/tmp/installation_files"
OSMYSHELL="/sbin/nologin"
SCRIPTS_DIR="${DIR}/tmp"

Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.7.0/wazuh-manager/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Wazuh, Inc 2016
set -e
DIR="/var/ossec"
WAZUH_TMP_DIR="/tmp/wazuh-manager"
WAZUH_TMP_DIR="${DIR}/tmp/installation_files"

case "$1" in
purge|remove|failed-upgrade|abort-install|abort-upgrade|disappear)
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.7.0/wazuh-manager/debian/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
set -e

# configuration variables
WAZUH_TMP_DIR="/tmp/wazuh-manager"
DIR="/var/ossec"
WAZUH_TMP_DIR="${DIR}/tmp/installation_files"

# environment configuration
if [ ! -d ${WAZUH_TMP_DIR} ]; then
Expand Down

0 comments on commit f5d051f

Please sign in to comment.