summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Wang2022-05-03 19:21:44 -0500
committerAnthony Wang2022-05-03 19:21:44 -0500
commit62fe853335b9d990a6c8537e2a8816a8dc65df5b (patch)
treebe724eeedaacf600ed2acf0b703a0020b1d1b160
parent4da1ac01353c0ba6ef171babf7a26f5fa45de4ce (diff)
downloadaur-62fe853335b9d990a6c8537e2a8816a8dc65df5b.tar.gz
Fix post_install script
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--mastodon.install8
3 files changed, 3 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3f2152922dd0..381f2bff1c27 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 49e7349429ef..b9d82db42279 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"