1 Star 0 Fork 0

duanhlduanhl/wazuh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
add_localfiles.sh 697 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alberto Marín 提交于 2017-01-30 18:34 . Replace installation directory
#!/bin/sh
# Wazuh Configuration File Generator
# Copyright (C) 2016 Wazuh Inc.
# November 24, 2016.
#
# This program is a free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License (version 2) as published by the FSF - Free Software
# Foundation.
# Looking up for the execution directory
cd `dirname $0`
. ./src/init/shared.sh
. ./src/init/inst-functions.sh
NEWCONFIG="./localfiles.temp"
if [ -r "$NEWCONFIG" ]; then
rm "$NEWCONFIG"
fi
if [ "$#" = "1" ]; then
INSTALLDIR="$1"
fi
echo "" >> $NEWCONFIG
echo "<ossec_config>" >> $NEWCONFIG
WriteLogs "add"
echo "</ossec_config>" >> $NEWCONFIG
cat "$NEWCONFIG"
rm "$NEWCONFIG"
exit 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/duanhlduanhl/wazuh.git
git@gitee.com:duanhlduanhl/wazuh.git
duanhlduanhl
wazuh
wazuh
v3.2.2-rc-3238

搜索帮助

0d507c66 1850385 C8b1a773 1850385