1 Star 0 Fork 9

langyenan / rAthenaCN

forked from rAthenaCN / rAthenaCN 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
function.sh 564 Bytes
一键复制 编辑 原始数据 按行查看 历史
L_SRV=login-server
C_SRV=char-server
M_SRV=map-server
INST_PATH=/opt
PKG=rathena
PKG_PATH=$INST_PATH/$PKG
check_files() {
for i in ${L_SRV} ${C_SRV} ${M_SRV}
do
if [ ! -f ./$i ]; then
echo "$i does not exist... exiting..."
exit 1;
fi
done
}
check_inst_right(){
if [ ! -w $INST_PATH ]; then echo "You must have sudo right to use this install (write/read permission in /opt/ )" && exit; fi
}
inst_launch_workaround(){
if [ -d $PKG_PATH ]; then
if [ $(pwd) != $PKG_PATH ]; then cd $PKG_PATH; fi
fi
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/langyenan/rAthenaCN.git
git@gitee.com:langyenan/rAthenaCN.git
langyenan
rAthenaCN
rAthenaCN
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891