mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 11:42:18 +08:00
修复更新脚本时提示路径错误
This commit is contained in:
parent
43804fa170
commit
99f2644392
Binary file not shown.
|
@ -240,12 +240,12 @@ if [ "$res" = '1' ]; then
|
||||||
#解压
|
#解压
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo 开始解压文件!
|
echo 开始解压文件!
|
||||||
mkdir -p $dir/clash > /dev/null
|
mkdir -p $clashdir > /dev/null
|
||||||
tar -zxvf '/tmp/clashfm.tar.gz' -C $dir/clash/ > /dev/null
|
tar -zxvf '/tmp/clashfm.tar.gz' -C $clashdir > /dev/null
|
||||||
[ $? -ne 0 ] && echo "文件解压失败!" && exit 1
|
[ $? -ne 0 ] && echo "文件解压失败!" && exit 1
|
||||||
#初始化文件目录
|
#初始化文件目录
|
||||||
mv $dir/clash/clashservice /etc/init.d/clash #将clash服务文件移动到系统目录
|
mv $clashdir/clashservice /etc/init.d/clash #将clash服务文件移动到系统目录
|
||||||
chmod 777 $dir/clash/clash #授予权限
|
chmod 777 $clashdir/clash #授予权限
|
||||||
chmod 777 /etc/init.d/clash #授予权限
|
chmod 777 /etc/init.d/clash #授予权限
|
||||||
|
|
||||||
#删除临时文件
|
#删除临时文件
|
||||||
|
|
Loading…
Reference in New Issue
Block a user