[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-list] Re: UI install




List Subscriptions wrote:

Well I'm still new to shell scripting but you could probably do the following:

# Looking for htpasswd
HTPWDCMD="/opt/lampp/bin/htpasswd"
ls "`which $HTPWDCMD`" > /dev/null 2>&1
if [ ! $? = 0 ]; then
   HTPWDCMD="htpasswd2"
   ls "`which $HTPWDCMD`" > /dev/null 2>&1
   if [ ! $? = 0 ]; then
       HTPWDCMD=""
   fi
fi

All this code is doing is trying to locate the htpasswd binary to set
an htaccess password as part of the setup.  This shouldn't have any
issues down the road.

Cheers,
Dale


On 5/2/07, neill lillywhite <neill@xxxxxxxxxxxxxx> wrote:

hi

i use XAMPP rather than standard apaches whihc puts everything under
/opt/lampp

when i run the setup script for the UI install i get an error

* could not find htpasswd *

$ whereis htpasswd
$ /opt/lampp/bin/htpasswd

how do i edit setup.sh to take account of this and will there be any
other issues further down the line ??

thanks

neill




you may be new to scripting Dale but that certainly worked !!

thanks :)

neill


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.