HCoop
/
hcoop
/
zz_old
/
misc
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0963ebc
)
add error detection to cpw in create-user
author
megacz
<megacz>
Tue, 1 May 2007 02:58:08 +0000
(
02:58
+0000)
committer
megacz
<megacz>
Tue, 1 May 2007 02:58:08 +0000
(
02:58
+0000)
create-user
patch
|
blob
|
blame
|
history
diff --git
a/create-user
b/create-user
index
d5f5a11
..
2c4e33a
100755
(executable)
--- a/
create-user
+++ b/
create-user
@@
-215,6
+215,11
@@
fs checkvolumes
#
# Finally, set password for main user's principal
# Aborting this operation is harmless. Just re-invoke cpw.
#
# Finally, set password for main user's principal
# Aborting this operation is harmless. Just re-invoke cpw.
+#
+# kadmin.local doesn't report errors properly, so we have to
+# check manually
#
#
-sudo kadmin.local -p root/admin -q "cpw $USER@HCOOP.NET"
+sudo kadmin.local -p root/admin -q "cpw $USER@HCOOP.NET" \
+ 2>&1 | grep 'Password for .* changed' || \
+ (echo "*** kadmin.local -q cpw failed!"; exit -1)