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 /PKGBUILD | |
parent | aa5f944cec933dc979757659e30cbf7428a89b78 (diff) | |
download | aur-5631570032b59addbe237f731743c906ef5574c5.tar.gz |
Install systemd service and target files
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 } |