2 Star 12 Fork 10

xrkmonitor / plugin_linux_base

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
make_fabu.sh 917 Bytes
一键复制 编辑 原始数据 按行查看 历史
xrkmonitor 提交于 2020-11-15 10:26 . up
#!/bin/bash
PLUGIN=linux_base
TARGET=${PLUGIN}.tar.gz
if [ $# -ne 1 ];then
echo "use ./make_fabu.sh open|cloud"
exit 1
fi
COMM_FILE="auto_install.sh auto_uninstall.sh restart.sh start.sh stop.sh add_crontab.sh report_cfg.sh remove_crontab.sh check_xrk_plugin.sh xrk_${PLUGIN} backup_file.sh"
rm -f $TARGET > /dev/null 2>&1
if [ "$1" == "open" ]; then
tar -czf ${TARGET} $COMM_FILE
elif [ "$1" == "cloud" ];then
tar -czf ${TARGET} $COMM_FILE xrk_${PLUGIN}.conf
else
echo "use ./make_fabu.sh open|cloud"
exit 1
fi
if [ -d /srv/www/monitor/download/packet/linux ]; then
echo "cp ${TARGET} /srv/www/monitor/download/packet/linux"
cp ${TARGET} /srv/www/monitor/download/packet/linux
elif [ -d /home/monitor_cms/public/monitor/download/packet/linux ]; then
echo "cp ${TARGET} /home/monitor_cms/public/monitor/download/packet/linux"
cp ${TARGET} /home/monitor_cms/public/monitor/download/packet/linux
fi
C++
1
https://gitee.com/xrkmonitorcom/plugin_linux_base.git
git@gitee.com:xrkmonitorcom/plugin_linux_base.git
xrkmonitorcom
plugin_linux_base
plugin_linux_base
master

搜索帮助