Mercurial > libervia-backend
view docker/backend-dev-demo/scripts/init_script.sh @ 4300:7ded09452875
plugin XEP-0077, XEP-0100: Adapt to component, and modernize:
- Plugin XEP-0077 can now be used with component, allowing to register methods to return
registration form, and to (un)register.
- Plugin XEP-0077 now advertises its feature in disco.
- Plugin XEP-0100 has been modernized a bit: it is one of the older plugin in Libervia,
and it has now some type hints, models and async methods.
- Plugin XEP-0100's bridge method `gateways_find` now returns a serialised dict with
relevant data. Former XMLUI version has been moved to `gateways_find_xmlui`.
rel 449
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Sep 2024 18:01:31 +0200 |
parents | 6a8cc6d668a4 |
children |
line wrap: on
line source
#!/bin/bash SETUP_INDICATOR="/home/libervia/.local/share/libervia/setup_complete.flag" FORUMS_JSON_FILE="/home/libervia/forums.json" if [ ! -f "$SETUP_INDICATOR" ]; then echo "First run detected. Setting up the environment and configuration." # we create the file sharing component which will autoconnect when backend is started libervia-cli profile create file-sharing -j files.server1.test -p "" --xmpp-password test_e2e -C file-sharing -A # we have to be sure that file-sharing is connected before demo account, # otherwise disco will be cached without it, and feature such as file # sharing won't be available. libervia-cli profile connect -cp file-sharing # create a demo account libervia-cli profile create demo -j demo@server1.test -p "demo" libervia-cli profile modify -D -cp demo --pwd demo libervia-cli forums set -p demo < $FORUMS_JSON_FILE libervia-cli bookmarks add -pdemo -a demo@chat.server1.test touch "$SETUP_INDICATOR" echo "Initial setup complete." else echo "Not the first run. Skipping setup." fi