From 50d9290b38b42c611d3acd90065b732fad7dfb73 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 30 Mar 2017 17:40:30 +0200 Subject: [PATCH] no need to run --edit-user/group, if name has not changed --- doc/ad-migration.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/ad-migration.sh b/doc/ad-migration.sh index 1de5c93ec9..c2a13ab730 100755 --- a/doc/ad-migration.sh +++ b/doc/ad-migration.sh @@ -14,6 +14,9 @@ while IFS=, read account_lid account_id ad_user SID RID rest do if [ -n "$account_id" -a -n "$RID" ] then + [ -z "$account_lid" -o -z "$ad_user" -o "$account_lid" = "$ad_user" ] && { + echo -n "#" + } if [ $account_id -gt 0 ] then echo "admin/admin-cli.php --edit-user '$ADMIN,$PASSWD,$account_lid=$ad_user'"