Fix some mistakes (#373)

- Nginx duplication in packages installation
- Specify the user type for `mastodon` (--system and --disabled-password)
- Simplify services start-up
- Clearly write how to check services are running (or not) with `systemctl status`
This commit is contained in:
Mathias B 2017-08-16 22:13:44 +02:00 committed by Eugen Rochko
parent 6e52a54bbf
commit b69b7fee1a
1 changed files with 9 additions and 5 deletions

View File

@ -88,7 +88,7 @@ Now you need to install [Yarn](https://yarnpkg.com/en/) plus some more software.
- Other -dev packages, g++ - these are needed for the compilation of Ruby using ruby-build. - Other -dev packages, g++ - these are needed for the compilation of Ruby using ruby-build.
```sh ```sh
apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc-6 autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev nginx redis-server redis-tools postgresql postgresql-contrib nginx letsencrypt yarn libidn11-dev libicu-dev apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc-6 autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev nginx redis-server redis-tools postgresql postgresql-contrib letsencrypt yarn libidn11-dev libicu-dev
``` ```
### Dependencies That Need To Be Added As A Non-Root User ### Dependencies That Need To Be Added As A Non-Root User
@ -96,7 +96,7 @@ apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git g+
Let us create this user first: Let us create this user first:
```sh ```sh
adduser mastodon adduser --system --disabled-password mastodon
``` ```
Log in as the `mastodon` user: Log in as the `mastodon` user:
@ -503,9 +503,13 @@ systemctl enable /etc/systemd/system/mastodon-*.service
Now start the services: Now start the services:
```sh ```sh
systemctl start mastodon-web.service systemctl start mastodon-*.service
systemctl start mastodon-sidekiq.service ```
systemctl start mastodon-streaming.service
Check that they are properly running:
```sh
systemctl status mastodon-*.service
``` ```
That is all! If everything was done correctly, a [Mastodon](https://github.com/tootsuite/mastodon/) instance will appear when you visit `https://example.com` in a web browser. That is all! If everything was done correctly, a [Mastodon](https://github.com/tootsuite/mastodon/) instance will appear when you visit `https://example.com` in a web browser.