home · contact · privacy
Basic Pleroma updating script.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 29 Feb 2020 21:54:19 +0000 (22:54 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 29 Feb 2020 21:54:19 +0000 (22:54 +0100)
buster/setup_scripts/update_pleroma.sh [new file with mode: 0644]

diff --git a/buster/setup_scripts/update_pleroma.sh b/buster/setup_scripts/update_pleroma.sh
new file mode 100644 (file)
index 0000000..cf63eb8
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+set -x
+
+# Heavily inspired by <https://docs-develop.pleroma.social/backend/administration/updating/>
+su pleroma -s $SHELL -lc 'cd /opt/pleroma && git pull && mix deps.get'
+service pleroma stop
+su pleroma -s $SHELL -lc 'MIX_ENV=prod cd /opt/pleroma && mix ecto.migrate'
+service pleroma start