diff options
author | Anthony Wang | 2022-05-03 19:21:44 -0500 |
---|---|---|
committer | Anthony Wang | 2022-05-03 19:21:44 -0500 |
commit | 62fe853335b9d990a6c8537e2a8816a8dc65df5b (patch) | |
tree | be724eeedaacf600ed2acf0b703a0020b1d1b160 | |
parent | 4da1ac01353c0ba6ef171babf7a26f5fa45de4ce (diff) | |
download | aur-62fe853335b9d990a6c8537e2a8816a8dc65df5b.tar.gz |
Fix post_install script
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | mastodon.install | 8 |
3 files changed, 3 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = mastodon pkgdesc = Your self-hosted, globally interconnected microblogging community pkgver = 3.5.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/mastodon/mastodon install = mastodon.install arch = x86_64 @@ -6,7 +6,7 @@ pkgname=mastodon pkgver=3.5.2 -pkgrel=1 +pkgrel=2 pkgdesc='Your self-hosted, globally interconnected microblogging community' arch=(x86_64) url=https://github.com/mastodon/mastodon diff --git a/mastodon.install b/mastodon.install index 8543440cf41a..c8beb8d173f3 100644 --- a/mastodon.install +++ b/mastodon.install @@ -1,17 +1,11 @@ post_install() { - cd /var/lib/mastodon - - echo "Setting ownership of mastodon files" - chown mastodon:mastodon -R . - echo "Precompiling assets" - sudo -u mastodon RAILS_ENV=production bundle exec rails assets:precompile - echo "To setup Mastodon, enable and start PostgreSQL and Redis: # systemctl enable --now postgresql redis Create the Mastodon PostgreSQL user and grant it the ability to create databases with: # sudo -u postgres createuser -d mastodon Then, run: # cd /var/lib/mastodon +# sudo chown mastodon:mastodon -R . # sudo -u mastodon RAILS_ENV=production bundle exec rails mastodon:setup Finally, enable and start all the required services: # systemctl enable --now mastodon.target" |