X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Finit%2Fupdate.sh;fp=src%2Finit%2Fupdate.sh;h=0e0b0783b5cbabe78f8f31da2109d8d812ad8f85;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=61ff28e4bbbefd8f23162ebbbbe874e42d585e12;hpb=ef70704f0b31b59bb719b884d6a99cb9e3e2044a;p=ossec-hids.git diff --git a/src/init/update.sh b/src/init/update.sh index 61ff28e..0e0b078 100755 --- a/src/init/update.sh +++ b/src/init/update.sh @@ -46,10 +46,10 @@ doUpdatecleanup() fi # Checking if the directory is valid. - local _dir_pattern="^/[-a-zA-Z0-9/\.-]{3,128}$" - echo $DIRECTORY | grep -E "$_dir_pattern" > /dev/null 2>&1 + _dir_pattern_update="^/[-a-zA-Z0-9/\.-]{3,128}$" + echo $DIRECTORY | grep -E "$_dir_pattern_update" > /dev/null 2>&1 if [ ! $? = 0 ]; then - echo "# ($FUNCNAME) ERROR: directory name ($DIRECTORY) doesn't match the pattern $_dir_pattern" 1>&2 + echo "# ($FUNCNAME) ERROR: directory name ($DIRECTORY) doesn't match the pattern $_dir_pattern_update" 1>&2 echo "${FALSE}" return 1; fi @@ -139,7 +139,7 @@ UpdateOSSECRules() grep -E '|' ${OSSEC_CONF_FILE} | grep -v '