summaryrefslogtreecommitdiff
path: root/docs/installation/migrating_from_source_otp_en.md
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2024-05-27 16:23:40 +0400
committerLain Soykaf <lain@lain.com>2024-05-27 16:23:40 +0400
commit825b4122a5cda720cb567196ad34e456a68f5dc6 (patch)
tree9b41826b70cf7825db5535cd0383b1aebc48806d /docs/installation/migrating_from_source_otp_en.md
parent21d9091f5e422493ff69fe59db9c965e0d511369 (diff)
parent6757382abec9ca47a9025b8bed61047414cee20f (diff)
downloadpleroma-825b4122a5cda720cb567196ad34e456a68f5dc6.tar.gz
pleroma-825b4122a5cda720cb567196ad34e456a68f5dc6.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into pleroma-ipfs_uploader
Diffstat (limited to 'docs/installation/migrating_from_source_otp_en.md')
-rw-r--r--docs/installation/migrating_from_source_otp_en.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/installation/migrating_from_source_otp_en.md b/docs/installation/migrating_from_source_otp_en.md
index e4a01d8db..798862566 100644
--- a/docs/installation/migrating_from_source_otp_en.md
+++ b/docs/installation/migrating_from_source_otp_en.md
@@ -5,7 +5,7 @@
In this guide we cover how you can migrate from a from source installation to one using OTP releases.
## Pre-requisites
-You will be running commands as root. If you aren't root already, please elevate your priviledges by executing `sudo su`/`su`.
+You will be running commands as root. If you aren't root already, please elevate your privileges by executing `sudo su`/`su`.
The system needs to have `curl` and `unzip` installed for downloading and unpacking release builds.
@@ -86,26 +86,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