Use "sudo -u" instead of "sudo su"
"sudo su" limits the capability of sudo to log the operations. -u option is more straightforward and has better logging.
This commit is contained in:
parent
fed4ab2d3a
commit
cab815878c
1 changed files with 7 additions and 4 deletions
|
@ -109,7 +109,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 su - 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 -u mastodon`.
|
||||||
|
|
||||||
## General dependencies
|
## General dependencies
|
||||||
|
|
||||||
|
@ -130,8 +130,7 @@ It is recommended to create a special user for mastodon on the server (you could
|
||||||
|
|
||||||
Set up a user and database for Mastodon:
|
Set up a user and database for Mastodon:
|
||||||
|
|
||||||
sudo su - postgres
|
sudo -u postgres psql
|
||||||
psql
|
|
||||||
|
|
||||||
In the prompt:
|
In the prompt:
|
||||||
|
|
||||||
|
@ -163,7 +162,11 @@ Then once `rbenv` is ready, run `rbenv install 2.4.1` to install the Ruby versio
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
|
|
||||||
You need the `git-core` package installed on your system. If it is so, 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 -su mastodon
|
||||||
|
|
||||||
|
And enter the following commands:
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
git clone https://github.com/tootsuite/mastodon.git live
|
git clone https://github.com/tootsuite/mastodon.git live
|
||||||
|
|
Loading…
Reference in a new issue