From: Christian Heller Date: Sat, 29 Feb 2020 21:54:19 +0000 (+0100) Subject: Basic Pleroma updating script. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7B%20deck_id%20%7D%7D/todo?a=commitdiff_plain;h=b75ef80ef50df7088fdacb016c3943d878a6c57b;p=config Basic Pleroma updating script. --- diff --git a/buster/setup_scripts/update_pleroma.sh b/buster/setup_scripts/update_pleroma.sh new file mode 100644 index 0000000..cf63eb8 --- /dev/null +++ b/buster/setup_scripts/update_pleroma.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +set -x + +# Heavily inspired by +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