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
8
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
Merge requests
!154
Add script to move between groups
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add script to move between groups
louistw/rabbitmq_agents:feat-migration-script
into
main
Overview
0
Commits
6
Pipelines
3
Changes
1
Merged
Bo-Chun Chen
requested to merge
louistw/rabbitmq_agents:feat-migration-script
into
main
9 months ago
Overview
0
Commits
6
Pipelines
3
Changes
1
Expand
Closes gpfs5-migration#30
👍
0
👎
0
Merge request reports
Viewing commit
28c8c81f
Prev
Next
Show latest version
1 file
+
1
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
28c8c81f
refactor: check exit code of command directly
· 28c8c81f
Bo-Chun Chen
authored
9 months ago
user_migrate.sh
+
1
−
3
Options
@@ -16,9 +16,7 @@ elif [[ ! " ${group_options[*]} " =~ [[:space:]]${group_to}[[:space:]] ]]; then
exit
1
fi
getent passwd
"
$user
"
>
/dev/null 2&>1
if
[[
$?
-ne
0
]]
;
then
if
!
getent passwd
"
$user
"
>
/dev/null 2>&1
;
then
echo
"The user
$user
does not exist"
exit
1
fi
Loading