469 Unstar Star 1.1K Fork 519

茹憶。 / Lepus

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
install.sh 1.01 KB
Copy Edit Web IDE Raw Blame History
茹憶。 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."

Comment ( 0 )

Sign in for post a comment

Python
1
https://git.oschina.net/ruzuojun/Lepus.git
git@git.oschina.net:ruzuojun/Lepus.git
ruzuojun
Lepus
Lepus
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542