diff options
author | Caleb Maclennan | 2017-04-21 16:53:47 +0300 |
---|---|---|
committer | Caleb Maclennan | 2017-04-21 16:53:47 +0300 |
commit | 5631570032b59addbe237f731743c906ef5574c5 (patch) | |
tree | c1378d660ae94c9839d8acdf1b4d08642396140b | |
parent | aa5f944cec933dc979757659e30cbf7428a89b78 (diff) | |
download | aur-5631570032b59addbe237f731743c906ef5574c5.tar.gz |
Install systemd service and target files
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Fri Apr 21 13:06:16 UTC 2017 +# Fri Apr 21 13:53:04 UTC 2017 pkgbase = mastodon-git pkgdesc = A GNU Social-compatible microblogging server pkgver = 1.2.2_22_ga0ed88a9 @@ -70,6 +70,8 @@ post_install() { echo "" echo "4. Create an administrator account:" echo " $ cd ~mastodon && sudo -u mastodon RAILS_ENV=production bundle exec rails mastodon:make_admin USERNAME=<username>" + echo "" + echo "5. Enable and start instance:" } post_upgrade() { @@ -78,4 +80,8 @@ post_upgrade() { package() { cd "${pkgname%-git}" + + for service in mastodon-{web,sidekiq,streaming}.service mastodon.target; do + install -Dm644 "${srcdir}/${service}" "${pkgdir}/usr/lib/systemd/system/${service}" + done } |