X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fagentlessd%2Fscripts%2Fregister_host.sh;h=d7b939ee7faa39b0461f805572749d8d7b19f96b;hb=280230a44cb9f9872652b6bb80de45a27af411f4;hp=0984e7699cacf92934c628b12fe166b4776c48cd;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/agentlessd/scripts/register_host.sh b/src/agentlessd/scripts/register_host.sh index 0984e76..d7b939e 100755 --- a/src/agentlessd/scripts/register_host.sh +++ b/src/agentlessd/scripts/register_host.sh @@ -1,6 +1,7 @@ #!/bin/sh -# @(#) $Id: register_host.sh,v 1.5 2009/06/24 17:06:21 dcid Exp $ +# @(#) $Id: ./src/agentlessd/scripts/register_host.sh, 2012/07/23 dcid Exp $ + # Agentless monitoring # # Copyright (C) 2009 Trend Micro Inc. @@ -8,7 +9,7 @@ # # This program is a free software; you can redistribute it # and/or modify it under the terms of the GNU General Public -# License (version 3) as published by the FSF - Free Software +# License (version 2) as published by the FSF - Free Software # Foundation. @@ -88,6 +89,7 @@ elif [ "x$1" = "xadd" ]; then echo "ERROR: Unable to creating entry (echo failed)." exit 1; fi + chmod 744 $MYPASS echo "*Host $2 added." else