home · contact · privacy
Rename Pleroma source update script to prevent mix-ups.
[config] / buster / setup_scripts / update_pleroma_source.sh
diff --git a/buster/setup_scripts/update_pleroma_source.sh b/buster/setup_scripts/update_pleroma_source.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