mirror of https://github.com/zulip/zulip.git
docs: Avoid hardcoded /tmp paths in miscellaneous documentation.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
b7179f8f79
commit
25d6107a4f
|
@ -70,10 +70,10 @@ following commands, replacing the filename with the path to your data
|
|||
export tarball:
|
||||
|
||||
```
|
||||
cd /tmp
|
||||
cd ~
|
||||
tar -xf /path/to/export/file/zulip-export-zcmpxfm6.tar.gz
|
||||
cd /home/zulip/deployments/current
|
||||
./manage.py import '' /tmp/zulip-export-zcmpxfm6
|
||||
./manage.py import '' ~/zulip-export-zcmpxfm6
|
||||
./manage reactivate_realm -r '' # Reactivates the organization
|
||||
```
|
||||
|
||||
|
@ -89,7 +89,7 @@ root domain. Replace the last two lines above with the following, after replacin
|
|||
`<subdomain>` with the desired subdomain.
|
||||
|
||||
```
|
||||
./manage.py import <subdomain> /tmp/zulip-export-zcmpxfm6
|
||||
./manage.py import <subdomain> ~/zulip-export-zcmpxfm6
|
||||
./manage reactivate_realm -r <subdomain> # Reactivates the organization
|
||||
```
|
||||
|
||||
|
|
|
@ -27,16 +27,16 @@ one created by Zulip into it:
|
|||
|
||||
```shell
|
||||
sudo cp /etc/nginx/nginx.conf /etc/nginx.conf.before-zulip-install
|
||||
wget -O /tmp/nginx.conf.zulip \
|
||||
sudo wget -O /etc/nginx/nginx.conf.zulip \
|
||||
https://raw.githubusercontent.com/zulip/zulip/master/puppet/zulip/files/nginx/nginx.conf
|
||||
sudo meld /etc/nginx/nginx.conf /tmp/nginx.conf.zulip # be sure to merge to the right
|
||||
sudo meld /etc/nginx/nginx.conf /etc/nginx/nginx.conf.zulip # be sure to merge to the right
|
||||
```
|
||||
|
||||
After the zulip installation completes, then you can overwrite (or
|
||||
merge) your new nginx.conf with the installed one:
|
||||
|
||||
```shell
|
||||
$ sudo meld /tmp/nginx.conf.zulip /etc/nginx/nginx.conf # be sure to merge to the right
|
||||
$ sudo meld /etc/nginx/nginx.conf.zulip /etc/nginx/nginx.conf # be sure to merge to the right
|
||||
$ sudo service nginx restart
|
||||
```
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
# usage:
|
||||
# git clone --bare git@git.zulip.net:eng/zulip.git
|
||||
# cd zulip.git
|
||||
# git fast-export --export-marks=/tmp/em --progress=1000 --all > /tmp/fe
|
||||
# git fast-export --export-marks=../zulip.em --progress=1000 --all > ../zulip.fe
|
||||
# git init --bare ../zulip-zanitized.git
|
||||
# cd ../zulip-zanitized.git
|
||||
# zanitizer /tmp/fe /tmp/em | git fast-import --quiet
|
||||
# zanitizer ../zulip.fe ../zulip.em | git fast-import --quiet
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
|
|
@ -9,10 +9,10 @@ from typing import Any
|
|||
Example usage for testing purposes:
|
||||
|
||||
Move the data:
|
||||
rm -Rf /tmp/hipchat*
|
||||
mkdir /tmp/hipchat
|
||||
./manage.py convert_hipchat_data ~/hipchat-31028-2018-08-08_23-23-22.tar --output /tmp/hipchat
|
||||
./manage.py import --destroy-rebuild-database hipchat /tmp/hipchat
|
||||
rm -Rf ~/hipchat-data
|
||||
mkdir ~/hipchat-data
|
||||
./manage.py convert_hipchat_data ~/hipchat-31028-2018-08-08_23-23-22.tar --output ~/hipchat-data
|
||||
./manage.py import --destroy-rebuild-database hipchat ~/hipchat-data
|
||||
|
||||
|
||||
Test out the realm:
|
||||
|
|
Loading…
Reference in New Issue