Added instructions for migrate

This commit is contained in:
mrhanky 2017-07-04 16:13:43 +02:00
parent d1f19fcd7d
commit d1b559d523
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -17,6 +17,8 @@
* Copy ```config.json``` and modify it (setup ZNC etc.) * Copy ```config.json``` and modify it (setup ZNC etc.)
- ```cp config.json-example config.json``` - ```cp config.json-example config.json```
- ```vim config.json``` - ```vim config.json```
* If database is empty, run the migrate script to populate the database with old nxy data:
- ```python bot/migrate.py```
* Leave (auto) activated virtualenv and exit the bot's shell * Leave (auto) activated virtualenv and exit the bot's shell
- ```deactivate && exit``` - ```deactivate && exit```
* Copy systemd unit and enable it (would recommend the ```/usr/local``` prefix). Don't forget to modify the systemd unit if your user and home directory are different! * Copy systemd unit and enable it (would recommend the ```/usr/local``` prefix). Don't forget to modify the systemd unit if your user and home directory are different!