Commit a97e599b authored by Spctrl's avatar Spctrl

v0.9.9999 + use postupgrade.sh

parent 04f84fc5
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"description": { "description": {
"en": "Pleroma is an OStatus and Activity Pub-compatible social networking server written in Elixir, compatible with GNU Social and Mastodon. It is high-performance and can run on small devices like a briqueinternet/internet cube." "en": "Pleroma is an OStatus and Activity Pub-compatible social networking server written in Elixir, compatible with GNU Social and Mastodon. It is high-performance and can run on small devices like a briqueinternet/internet cube."
}, },
"version": "0.9.99~ynh1", "version": "0.9.9999~ynh1",
"url": "https://git.pleroma.social/pleroma/pleroma", "url": "https://git.pleroma.social/pleroma/pleroma",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"maintainer": { "maintainer": {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# * ./manifest.json # * ./manifest.json
# * ./scripts/install # * ./scripts/install
# * ./ scripts/upgrade # * ./ scripts/upgrade
new_version="v0.9.99" new_version="v0.9.9999"
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# * ./manifest.json # * ./manifest.json
# * ./scripts/install # * ./scripts/install
# * ./ scripts/upgrade # * ./ scripts/upgrade
new_version="v0.9.99" new_version="v0.9.9999"
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
...@@ -132,6 +132,11 @@ systemctl stop $app ...@@ -132,6 +132,11 @@ systemctl stop $app
# TODO: Keep track of reverted files instead of hard reset everything # TODO: Keep track of reverted files instead of hard reset everything
su - $app -c "cd $final_path/pleroma;git reset --hard;git fetch --all --tags --prune;git checkout master;git checkout tags/$new_version;mix local.hex --force;MIX_ENV=prod mix deps.get;MIX_ENV=prod mix ecto.migrate;" su - $app -c "cd $final_path/pleroma;git reset --hard;git fetch --all --tags --prune;git checkout master;git checkout tags/$new_version;mix local.hex --force;MIX_ENV=prod mix deps.get;MIX_ENV=prod mix ecto.migrate;"
# post-upgrade. This is a custom script where people can do post-upgrade stuff
touch $final_path/post-upgrade.sh
chown -R $app: $final_path/post-upgrade.sh
su - $app -c "$final_path/post-upgrade.sh"
#================================================= #=================================================
# RESTART PLEROMA # RESTART PLEROMA
#================================================= #=================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment