no need to run --edit-user/group, if name has not changed

This commit is contained in:
Ralf Becker 2017-03-30 17:40:30 +02:00
parent 83768e932d
commit 50d9290b38

View File

@ -14,6 +14,9 @@ while IFS=, read account_lid account_id ad_user SID RID rest
do do
if [ -n "$account_id" -a -n "$RID" ] if [ -n "$account_id" -a -n "$RID" ]
then then
[ -z "$account_lid" -o -z "$ad_user" -o "$account_lid" = "$ad_user" ] && {
echo -n "#"
}
if [ $account_id -gt 0 ] if [ $account_id -gt 0 ]
then then
echo "admin/admin-cli.php --edit-user '$ADMIN,$PASSWD,$account_lid=$ad_user'" echo "admin/admin-cli.php --edit-user '$ADMIN,$PASSWD,$account_lid=$ad_user'"