summaryrefslogtreecommitdiff
path: root/docs/installation/migrating_from_source_otp_en.md
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2023-11-07 16:05:04 -0500
committerMark Felder <feld@feld.me>2023-11-07 16:05:04 -0500
commita0e08c6ec21b724432ac77eb395a18e6f8e2a093 (patch)
tree879947cf9b932c2c312b604d8768bc7e472234e1 /docs/installation/migrating_from_source_otp_en.md
parent63ef1dcedca7fb315f611388e477d3847d1acaa1 (diff)
parent11c520607fcb2bf5b8323d1b22b3123acf12efe1 (diff)
downloadpleroma-a0e08c6ec21b724432ac77eb395a18e6f8e2a093.tar.gz
pleroma-a0e08c6ec21b724432ac77eb395a18e6f8e2a093.zip
Merge branch 'develop' into phoenix1.7
Diffstat (limited to 'docs/installation/migrating_from_source_otp_en.md')
-rw-r--r--docs/installation/migrating_from_source_otp_en.md8
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 f6f23400a..798862566 100644
--- a/docs/installation/migrating_from_source_otp_en.md
+++ b/docs/installation/migrating_from_source_otp_en.md
@@ -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