修复安装时出现奇怪报错的bug

This commit is contained in:
juewuy
2020-08-14 15:22:24 +08:00
parent f09a7a7599
commit b5561d5e20
3 changed files with 3 additions and 5 deletions

View File

@@ -63,10 +63,9 @@ tar -zxvf '/tmp/clashfm.tar.gz' -C $dir/clash/
[ $? -ne 0 ] && echo "文件解压失败!" && exit 1
#初始化文件目录
mv $dir/clash/clashservice /etc/init.d/clash #将clash服务文件移动到系统目录
chmod 777 $dir/clash/clash #授予权限
chmod 777 /etc/init.d/clash #授予权限
if [ ! -f "$dir/clash/mark" ]; then
cat >$ccfg<<EOF
cat >$dir/clash/mark<<EOF
#标识clash运行状态的文件不明勿动
EOF
fi