1 Star 0 Fork 759

penzigo/Lepus

forked from LepusGroup/lepus 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
install.sh 1.01 KB
Copy Edit Raw Blame History
ruzuojun authored 2017-08-07 15:36 . 代码目录调整,修改readme
#!/bin/bash
basedir=""
#check basedir
########################################################
if test -z "$basedir"
then
basedir=/usr/local/lepus
else
basedir="$basedir"
fi
echo "[note] lepus will be install on basedir: $basedir"
#create dir
#########################################################
if [ ! -x "$basedir" ]; then
echo "[note] $basedir directory does not exist,will be created."
mkdir -p "$basedir"
echo "[note] $basedir directory created success."
else
echo "[error] $basedir directory already exists,install exit."
exit
fi
#copy files
########################################################
echo "[note] wait copy files......."
cp -r * $basedir
#change chmod
########################################################
echo "[note] change script permission."
chmod +x $basedir/lepus*
#create links
########################################################
echo "[note] create links."
ln -s $basedir/lepus /usr/local/sbin/
ln -s $basedir/lepus_monitor /usr/local/sbin/
echo "[note] install complete."
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/penzigo/Lepus.git
git@gitee.com:penzigo/Lepus.git
penzigo
Lepus
Lepus
master

Search