Unverified Commit ecaf43b2 authored by xiaohu's avatar xiaohu Committed by GitHub
Browse files

Update 6_uninstall.sh

[update] fix kubeops.service 服务卸载问题
parent 5d231e14
Showing with 2 additions and 2 deletions
+2 -2
......@@ -11,10 +11,10 @@ function remove_dir() {
}
function remove_service() {
echo -e "停止 KubeOperator 服务进程"
if [ -a /etc/systemd/system/kubeops.serviced ] ;then
if [ -a /etc/systemd/system/kubeops.service ] ;then
systemctl stop kubeops 2&> /dev/null
systemctl disable kubeops 2&> /dev/null
rm -rf /etc/systemd/system/kubeops.serviced
rm -rf /etc/systemd/system/kubeops.service
fi
if [ -a /opt/kubeoperator/kubeopsctl.sh ]; then
cd /opt/kubeoperator && docker-compose down -v
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment