1 Star 0 Fork 52

chengfey / zpan

forked from Ambor / zpan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.sh 463 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ambor 提交于 2020-09-06 12:20 . refactor: update the dir for the install.sh
#!/bin/sh
shell_dir=$(cd "$(dirname "$0")" || exit;pwd)
if [ ! -d "${shell_dir}/bin" ]; then
echo "not found bin files"
exit
fi
project="zpan"
unameOut="$(uname -s)"
config_dir="/etc/${project}"
test ! -d "${config_dir}" && mkdir "${config_dir}"
cp "${shell_dir}/bin/${project}" /usr/local/bin
cp -r "${shell_dir}"/deployments/. "${config_dir}"
if [ "${unameOut}" = "Linux" ]; then
cp "${shell_dir}/deployments/${project}".service /etc/systemd/system
fi
Go
1
https://gitee.com/chengfey/zpan.git
git@gitee.com:chengfey/zpan.git
chengfey
zpan
zpan
master

搜索帮助