blob: 8634de8ff73ef3c8223e2eed27f45d2a8b2cb314 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
post_install() {
getent passwd mastodon > /dev/null ||
useradd -rd /var/lib/mastodon -s /sbin/nologin mastodon
chown -R mastodon:mastodon /var/lib/mastodon
echo 'Enable mastodon.target to have all the Mastodon services start at boot.'
}
post_upgrade() {
chown -R mastodon:mastodon /var/lib/mastodon
echo "To upgrade the database schema, run 'sudo -u mastodon RAILS_ENV=production bundle exec rails db:migrate'.
To pre-compile updated assets, run 'sudo -u mastodon RAILS_ENV=production bundle exec rails assets:precompile'."
}
post_remove() {
echo 'You may want to remove the mastodon user.'
}
|