Mercurial > sat_docs
view scripts/test_accounts/create_accounts.sh @ 161:4fe61dcd856e
flatpak: update build-manifest to retrieve dependencies without initial download phase:
- dependencies are now entirely retrieved from the installation, and requirement are build
from there. The source package is currently always used, and it is now possible to use
PYTHON_DEP_PREINSTALL to add extra packages or use a specific version of a package.
- fixed insertion of `release_elt` for dev version at the right location.
- `branch` is not set anymore for stable versions.
- libxslt is not added anymore as it is part of freedesktop runtime
- flathub share-modules is now used for Python 2
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 23 Aug 2019 16:41:05 +0200 |
parents | 4cd5475623eb |
children |
line wrap: on
line source
#!/bin/bash # This is a helping script to create some test accounts. XMPP passwords are # retrieved from the DAT files in the data/<domain> directories, but you still # need to copy these files to your prosody installation directory. # The provided data directory contains some test accounts for two differents # domains (souliane.org and tazar.int), roster subscriptions and avatars. LIST=`jp profile list` for DIR in `ls data`; do DOMAIN=`echo $DIR | sed s/%2e/./` for FILE in `ls data/$DIR/accounts`; do USER=`echo $FILE | sed s/.dat//` JID=$USER@$DOMAIN PASSWD=`cat data/$DIR/accounts/$FILE | grep "\"password\"" | cut -d "\"" -f 4` echo -n Creating account for $JID... if [[ $LIST =~ $USER ]]; then echo -n removing existing account first... jp profile delete $USER fi jp profile create $USER -j $JID -p $PASSWD echo OK done done cp -r data/* ~/workspace/prosody-hg/data/