From 319a835b837cccaab5cc4face07548348655a113 Mon Sep 17 00:00:00 2001 From: Fushinn Date: Fri, 19 Jan 2024 15:17:01 +0800 Subject: [PATCH] =?UTF-8?q?0.9.8.11=20#####=201.=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ##### --- .shell/get-taichi.sh | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.shell/get-taichi.sh b/.shell/get-taichi.sh index 2fa1049..e23bbc9 100644 --- a/.shell/get-taichi.sh +++ b/.shell/get-taichi.sh @@ -921,21 +921,14 @@ EOF uninstall_taichi() { - if [ -x "$(command -v docker)" ]; then - docker stop taichios - docker rm taichios - docker rmi fushin/taichios - else - if [ -x "$(command -v systemctl)" ] && systemctl --all --type=service | grep -q 'taichi'; then - systemctl stop taichi - systemctl disable taichi - fi - rm -rf /usr/taichi - rm -f /etc/systemd/system/taichi.service - if [ -x "$(command -v systemctl)" ]; then - systemctl daemon-reload - fi - fi + docker stop taichios || true + docker rm taichios || true + docker rmi fushin/taichios || true + systemctl stop taichi || true + systemctl disable taichi || true + rm -rf /usr/taichi || true + rm -f /etc/systemd/system/taichi.service || true + systemctl daemon-reload || true } update_taichi() { if systemctl --all --type=service | grep -q 'taichi'; then