This commit is contained in:
juewuy
2021-05-29 17:01:31 +08:00
26 changed files with 85 additions and 41 deletions

View File

@@ -355,6 +355,7 @@ gettar(){
mv $clashdir/clash.service $sysdir/clash.service
sed -i "s%/etc/clash%$clashdir%g" $sysdir/clash.service
systemctl daemon-reload
#useradd shellclash
else
#设为保守模式启动
sed -i '/start_old=*/'d $clashdir/mark
@@ -849,6 +850,8 @@ update(){
rm -rf /etc/systemd/system/clash.service
rm -rf /usr/lib/systemd/system/clash.service
rm -rf /www/clash
sed -Ei s/0:7890/7890:7890/g /etc/passwd
userdel -r shellclash 2>/dev/null
echo -----------------------------------------------
echo -e "\033[36m已卸载ShellClash相关文件有缘再会\033[0m"
echo -e "\033[33m请手动关闭当前窗口以重置环境变量\033[0m"