diff options
author | Duponin <duponin@locahlo.st> | 2023-04-15 19:03:51 +0000 |
---|---|---|
committer | Duponin <duponin@locahlo.st> | 2023-04-15 19:03:51 +0000 |
commit | 7944271c1bdf4a4240b682249c068deb1b2acab0 (patch) | |
tree | 640da5c53a7428ea318081c779916e2c2e08a7fb /docs/installation/migrating_from_source_otp_en.md | |
parent | e444832bb5d0a02ca1a0988c3490d72b99758899 (diff) | |
download | pleroma-7944271c1bdf4a4240b682249c068deb1b2acab0.tar.gz pleroma-7944271c1bdf4a4240b682249c068deb1b2acab0.zip |
Unify install guides using sudo to use `sudo -Hu`
Diffstat (limited to 'docs/installation/migrating_from_source_otp_en.md')
-rw-r--r-- | docs/installation/migrating_from_source_otp_en.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/installation/migrating_from_source_otp_en.md b/docs/installation/migrating_from_source_otp_en.md index d303a6daf..64d335331 100644 --- a/docs/installation/migrating_from_source_otp_en.md +++ b/docs/installation/migrating_from_source_otp_en.md @@ -85,26 +85,26 @@ export FLAVOUR="amd64-musl" # Clone the release build into a temporary directory and unpack it # Replace `stable` with `unstable` if you want to run the unstable branch -su pleroma -s $SHELL -lc " +sudo -Hu pleroma " curl 'https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=$FLAVOUR' -o /tmp/pleroma.zip unzip /tmp/pleroma.zip -d /tmp/ " # Move the release to the home directory and delete temporary files -su pleroma -s $SHELL -lc " +sudo -Hu pleroma " mv /tmp/release/* ~pleroma/ rmdir /tmp/release rm /tmp/pleroma.zip " # Start the instance to verify that everything is working as expected -su pleroma -s $SHELL -lc "./bin/pleroma daemon" +sudo -Hu pleroma "./bin/pleroma daemon" # Wait for about 20 seconds and query the instance endpoint, if it shows your uri, name and email correctly, you are configured correctly sleep 20 && curl http://localhost:4000/api/v1/instance # Stop the instance -su pleroma -s $SHELL -lc "./bin/pleroma stop" +sudo -Hu pleroma "./bin/pleroma stop" ``` ## Setting up a system service |