diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | conf/app-mastodon.src | 4 | ||||
| -rw-r--r-- | manifest.json | 2 | ||||
| -rw-r--r-- | scripts/install | 5 | ||||
| -rw-r--r-- | scripts/upgrade | 6 |
5 files changed, 15 insertions, 4 deletions
@@ -1,6 +1,6 @@ # Mastodon for YunoHost -[](https://github.com/YunoHost-Apps/mastodon_ynh/releases) +[](https://github.com/YunoHost-Apps/mastodon_ynh/releases) [](https://github.com/YunoHost-Apps/mastodon_ynh/milestones) [](https://github.com/YunoHost-Apps/mastodon_ynh#dependencies) [](https://raw.githubusercontent.com/YunoHost-Apps/mastodon_ynh/master/LICENSE) diff --git a/conf/app-mastodon.src b/conf/app-mastodon.src index fa0e2eb..61c7260 100644 --- a/conf/app-mastodon.src +++ b/conf/app-mastodon.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/tootsuite/mastodon/archive/v2.4.2.tar.gz -SOURCE_SUM=2de73e57e4f3da4b046b8b1d8c90a03d1bdd8f9abddca8f5329d02a34ed821a5 +SOURCE_URL=https://github.com/tootsuite/mastodon/archive/v2.4.1.tar.gz +SOURCE_SUM=d90b573e16359f63f7b2834f1078ecfdd7d78cd5a26acd8293a314dd2b6ff1ec SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index ddb2479..11c277b 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "en": "Mastodon is a free, open-source social network.", "fr": "Mastodon est un réseau social gratuit et open source." }, - "version": "2.4.2", + "version": "2.4.1", "url": "https://github.com/tootsuite/mastodon", "license": "AGPL-3.0-or-later", "maintainer": { diff --git a/scripts/install b/scripts/install index 3d4d458..5d5bf1e 100644 --- a/scripts/install +++ b/scripts/install @@ -183,6 +183,11 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile rm /usr/bin/ruby || true ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true +# Yarn install on root +pushd $final_path/live +yarn install --pure-lockfile +popd + # Adjust Mastodon config # TODO: use official helper ynh_replace_string # TODO: save the config file in conf folder, to make replacement easier to read diff --git a/scripts/upgrade b/scripts/upgrade index 5585e03..8551421 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -155,6 +155,12 @@ yarn install --pure-lockfile MCOMMANDS ) +# Install package with yarn and restart postgresql +pushd $final_path/live +yarn install --pure-lockfile +systemctl restart postgresql +popd + # Apply Mastodon upgrade ( pushd $final_path/live |
