Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
KubeOperator
Commits
ecaf43b2
Unverified
Commit
ecaf43b2
authored
4 years ago
by
xiaohu
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update 6_uninstall.sh
[update] fix kubeops.service 服务卸载问题
parent
5d231e14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/6_uninstall.sh
+2
-2
scripts/6_uninstall.sh
with
2 additions
and
2 deletions
+2
-2
scripts/6_uninstall.sh
+
2
-
2
View file @
ecaf43b2
...
...
@@ -11,10 +11,10 @@ function remove_dir() {
}
function
remove_service
()
{
echo
-e
"停止 KubeOperator 服务进程"
if
[
-a
/etc/systemd/system/kubeops.service
d
]
;
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.service
d
rm
-rf
/etc/systemd/system/kubeops.service
fi
if
[
-a
/opt/kubeoperator/kubeopsctl.sh
]
;
then
cd
/opt/kubeoperator
&&
docker-compose down
-v
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment