Mercurial > sat_docs
comparison scripts/test_accounts/create_accounts.sh @ 47:36d158a50c8a
fixes script for creating test accounts
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 07 Jun 2015 13:52:08 +0200 |
parents | 1eb3ec190ea1 |
children | 4cd5475623eb |
comparison
equal
deleted
inserted
replaced
46:2b82a4eb40a6 | 47:36d158a50c8a |
---|---|
16 JID=$USER@$DOMAIN | 16 JID=$USER@$DOMAIN |
17 PASSWD=`cat data/$DIR/accounts/$FILE | grep "\"password\"" | cut -d "\"" -f 4` | 17 PASSWD=`cat data/$DIR/accounts/$FILE | grep "\"password\"" | cut -d "\"" -f 4` |
18 echo -n Creating account for $JID... | 18 echo -n Creating account for $JID... |
19 if [[ $LIST =~ $USER ]]; then | 19 if [[ $LIST =~ $USER ]]; then |
20 echo -n removing existing account first... | 20 echo -n removing existing account first... |
21 #jp profile delete $USER | 21 jp profile delete $USER |
22 fi | 22 fi |
23 echo jp profile create $USER $JID $PASSWD | 23 jp profile create $USER -j $JID -p $PASSWD |
24 echo OK | 24 echo OK |
25 done | 25 done |
26 done | 26 done |