mattermost: Fix import instructions in the documentation.

convert_mattermost_data expects a directory, not a .tar.gz file.
This commit is contained in:
Emil 2024-06-25 11:23:52 +02:00 committed by Tim Abbott
parent bb5c732dae
commit 12b367cc74
1 changed files with 6 additions and 2 deletions

View File

@ -187,9 +187,11 @@ Replace `<username>` and `<server_ip>` with the appropriate values below.
{!import-self-hosted-server-tips.md!} {!import-self-hosted-server-tips.md!}
``` ```
cd /tmp
tar -xf mattermost_data.tar.gz
cd /home/zulip/deployments/current cd /home/zulip/deployments/current
./scripts/stop-server ./scripts/stop-server
./manage.py convert_mattermost_data /tmp/mattermost_data.tar.gz --output /tmp/converted_mattermost_data ./manage.py convert_mattermost_data /tmp/mattermost_data --output /tmp/converted_mattermost_data
./manage.py import '' /tmp/converted_mattermost_data/<team-name> ./manage.py import '' /tmp/converted_mattermost_data/<team-name>
./scripts/start-server ./scripts/start-server
``` ```
@ -197,9 +199,11 @@ Replace `<username>` and `<server_ip>` with the appropriate values below.
Alternatively, to import into a custom subdomain, run: Alternatively, to import into a custom subdomain, run:
``` ```
cd /tmp
tar -xf mattermost_data.tar.gz
cd /home/zulip/deployments/current cd /home/zulip/deployments/current
./scripts/stop-server ./scripts/stop-server
./manage.py convert_mattermost_data /tmp/mattermost_data.tar.gz --output /tmp/converted_mattermost_data ./manage.py convert_mattermost_data /tmp/mattermost_data --output /tmp/converted_mattermost_data
./manage.py import <subdomain> /tmp/converted_mattermost_data/<team-name> ./manage.py import <subdomain> /tmp/converted_mattermost_data/<team-name>
./scripts/start-server ./scripts/start-server
``` ```