1 Star 0 Fork 104

tzthomas / ngr

forked from zhoudaqing / ngr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build-admin.sh 392 Bytes
一键复制 编辑 原始数据 按行查看 历史
jacobs 提交于 2019-08-03 13:27 . initialize project
#version_1.0
#!/bin/bash
source /etc/profile
if [ ! $1 ];then
echo "Usage: $0 enviroment"
exit 1
fi
ENV=$1
echo "$ENV"
PROJECT_NAME="NgrAdmin_$ENV"
function check() {
if [ $1 != 0 ];then
echo "exec fail"
exit 1
fi
}
sed -i "s/xxx/$ENV/g" service*.sh
mkdir $PROJECT_NAME
mv * .[^.]* $PROJECT_NAME
tar -czf "$PROJECT_NAME".tar.gz $PROJECT_NAME/
check $?
echo "SUCCESS"
Lua
1
https://gitee.com/tzthomas/ngr.git
git@gitee.com:tzthomas/ngr.git
tzthomas
ngr
ngr
master

搜索帮助