diff options
Diffstat (limited to 'mastodon.install')
-rw-r--r-- | mastodon.install | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/mastodon.install b/mastodon.install index edbad88f417b..1bbebea40012 100644 --- a/mastodon.install +++ b/mastodon.install @@ -1,12 +1,8 @@ post_install() { - getent passwd mastodon > /dev/null || - useradd -rd /var/lib/mastodon mastodon - chown -R mastodon:mastodon /var/lib/mastodon - 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: -# su - postgres -s /bin/sh -c \"createdb -d mastodon\" +# su - postgres -s /bin/sh -c \"createuser -d mastodon\" Then, run: # su - mastodon -s /bin/sh -c \"cd '/var/lib/mastodon'; RAILS_ENV=production bundle exec rails mastodon:setup\" Finally, enable and start all the required services: @@ -14,14 +10,8 @@ Finally, enable and start all the required services: } post_upgrade() { - chown -R mastodon:mastodon /var/lib/mastodon - echo "To upgrade the database schema, run: # su - mastodon -s /bin/sh -c \"RAILS_ENV=production bundle exec rails db:migrate\" To pre-compile assets, run: # su - mastodon -s /bin/sh -c \"RAILS_ENV=production bundle exec rails assets:precompile\"" } - -post_remove() { - echo 'You may want to remove the Mastodon user.' -} |