summarylogtreecommitdiffstats
path: root/pleroma.install
diff options
context:
space:
mode:
Diffstat (limited to 'pleroma.install')
-rw-r--r--pleroma.install23
1 files changed, 4 insertions, 19 deletions
diff --git a/pleroma.install b/pleroma.install
index e607f721210d..fbc3f08b232f 100644
--- a/pleroma.install
+++ b/pleroma.install
@@ -42,25 +42,10 @@ pre_upgrade() {
}
post_upgrade() {
- username="pleroma"
- home_dir="/opt/${username}"
- migration_needed="false"
-
- printf "Procedures to upgrade from version $2 to version $1:\n\n"
- case "$2" in
- "2.4.0-1")
- ;&
- "2.4.0-2")
- printf "Check https://pleroma.social/announcements/2021/08/29/pleroma-patch-release-2-4-1/ for upgrade notes.\n"
- ;&
- esac
-
- if [ "$migration_needed" = "true" ]; then
- printf "\nYou will need to migrate your database as the above upgrade notes state.\n"
- printf "Ensure your postgresql database, whether local or remote, is up, and run the following command:\n"
- printf ">>> cd \"$home_dir\"\n"
- printf ">>> sudo -Hu \"$username\" ./bin/pleroma_ctl migrate\n"
- fi
+ printf "\nYou will need to migrate your database as the above upgrade notes state.\n"
+ printf "Ensure your postgresql database, whether local or remote, is up, and run the following command:\n"
+ printf ">>> cd /opt/pleroma\n"
+ printf ">>> sudo -Hu pleroma /opt/pleroma/bin/pleroma_ctl migrate\n"
printf "\nAfter all these, you may start pleroma with:\n"
printf ">>> sudo systemctl start pleroma\n"