Skip to content
Snippets Groups Projects

Add script to move between groups

Merged Bo-Chun Chen requested to merge louistw/rabbitmq_agents:feat-migration-script into main
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
+ 1
3
@@ -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