Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
16
Issue boards
Milestones
Wiki
Code
Merge requests
10
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
rabbitmq_agents
Commits
b1e3f30b
Commit
b1e3f30b
authored
3 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Clean PUN process
parent
385bd7e8
No related branches found
Branches containing commit
No related tags found
2 merge requests
!147
Merge previous default branch feat-cod-rmq into main
,
!120
Update delete user script
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prod_rmq_agents/examples/delete_user.sh
+3
-0
3 additions, 0 deletions
prod_rmq_agents/examples/delete_user.sh
with
3 additions
and
0 deletions
prod_rmq_agents/examples/delete_user.sh
+
3
−
0
View file @
b1e3f30b
...
@@ -20,6 +20,9 @@ fi
...
@@ -20,6 +20,9 @@ fi
if
id
"
$username
"
&>/dev/null
;
then
if
id
"
$username
"
&>/dev/null
;
then
echo
"Deleting user:
${
username
}
"
echo
"Deleting user:
${
username
}
"
echo
"Clean PUN process on loginnode"
ssh login001
"/opt/ood/nginx_stage/sbin/nginx_stage nginx_clean --force --user
$username
"
echo
"Remove user via cmsh"
echo
"Remove user via cmsh"
cmsh
-c
"user use
${
username
}
; remove -d; commit;"
cmsh
-c
"user use
${
username
}
; remove -d; commit;"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment