HCoop
/
clinton
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e8f64a1
)
cope with users who dont have \\n at the end of their password
author
megacz
<megacz>
Tue, 15 May 2007 00:25:34 +0000
(
00:25
+0000)
committer
megacz
<megacz>
Tue, 15 May 2007 00:25:34 +0000
(
00:25
+0000)
make-account-for-fyodor-user
patch
|
blob
|
blame
|
history
diff --git
a/make-account-for-fyodor-user
b/make-account-for-fyodor-user
index
dc9569c
..
1f6aedd
100755
(executable)
--- a/
make-account-for-fyodor-user
+++ b/
make-account-for-fyodor-user
@@
-10,7
+10,9
@@
for USERHOME in `ssh $ADMIN@fyodor.hcoop.net cd /home\; find */.mire-password -s
echo == creating user $USER ======================================================================
create-user $USER && \
echo == creating user $USER ======================================================================
create-user $USER && \
- (ssh $ADMIN@fyodor.hcoop.net cat /home/$USER/.mire-password\; cat /home/$USER/.mire-password |\
+ COMMAND="(cat /home/$USER/.mire-password;echo)|head -n 1"
+ COMMAND="$COMMAND;$COMMAND"
+ (ssh $ADMIN@fyodor.hcoop.net $COMMAND |\
change-user-password $USER) && \
(echo == account created successfully ========================================================
echo == deleting .mire-password =============================================================
change-user-password $USER) && \
(echo == account created successfully ========================================================
echo == deleting .mire-password =============================================================