Update Production-guide.md
Fixes the problem where the `mastodon` user has /bin/false as a shell and so `sudo -iu` won't do anything
This commit is contained in:
parent
54ed3bf443
commit
39fe30df48
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ server {
|
||||||
|
|
||||||
## Running in production without Docker
|
## Running in production without Docker
|
||||||
|
|
||||||
It is recommended to create a special user for mastodon on the server (you could call the user `mastodon`), though remember to disable outside login for it. You should only be able to get into that user through `sudo -iu mastodon`.
|
It is recommended to create a special user for mastodon on the server (you could call the user `mastodon`), though remember to disable outside login for it. You should only be able to get into that user through `sudo -sHu mastodon`.
|
||||||
|
|
||||||
This command will create the user as needed:
|
This command will create the user as needed:
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ rbenv global 2.4.1
|
||||||
|
|
||||||
You need the `git-core` package installed on your system. If it is so, run the shell from the `mastodon` user:
|
You need the `git-core` package installed on your system. If it is so, run the shell from the `mastodon` user:
|
||||||
|
|
||||||
sudo -iu mastodon
|
sudo -sHu mastodon
|
||||||
|
|
||||||
And enter the following commands:
|
And enter the following commands:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue