Administration guide
-=================
+====================
So, you have a working Mastodon instance... now what?
+## Turning into an admin
+
+The following rake task:
+
+ rails mastodon:make_admin USERNAME=alice
+
+Would turn the local user "alice" into an admin.
+
## Administration web interface
A user that is designated as `admin = TRUE` in the database is able to access a suite of administration tools:
You are able to set the following settings:
+- Site title
- Contact username
- Contact email
- Site description
- Site extended description
-You may wish to use the extended description (shown at https://yourmastodon.instance/about/more ) to display content guidelines or a user agreement (see https://mastodon.social/about/more for an example).
\ No newline at end of file
+You may wish to use the extended description (shown at https://yourmastodon.instance/about/more ) to display content guidelines or a user agreement (see https://mastodon.social/about/more for an example).
# frozen_string_literal: true
namespace :mastodon do
+ task make_admin: :environment do
+ include RoutingHelper
+
+ user = Account.find_local(ENV.fetch('USERNAME')).user
+ user.update(admin: true)
+
+ puts "Congrats! #{user.account.username} is now an admin. \\o/\nNavigate to #{admin_settings_url} to get started"
+ end
+
namespace :media do
desc 'Removes media attachments that have not been assigned to any status for longer than a day'
task clear: :environment do