projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.7
[ossec-hids.git]
/
src
/
agentlessd
/
scripts
/
register_host.sh
diff --git
a/src/agentlessd/scripts/register_host.sh
b/src/agentlessd/scripts/register_host.sh
index
0984e76
..
d7b939e
100755
(executable)
--- a/
src/agentlessd/scripts/register_host.sh
+++ b/
src/agentlessd/scripts/register_host.sh
@@
-1,6
+1,7
@@
#!/bin/sh
#!/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.
# 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
#
# 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.
# Foundation.
@@
-88,6
+89,7
@@
elif [ "x$1" = "xadd" ]; then
echo "ERROR: Unable to creating entry (echo failed)."
exit 1;
fi
echo "ERROR: Unable to creating entry (echo failed)."
exit 1;
fi
+ chmod 744 $MYPASS
echo "*Host $2 added."
else
echo "*Host $2 added."
else