diff options
| author | anmol26s <github@datamol.org> | 2018-12-26 07:06:37 +0530 |
|---|---|---|
| committer | anmol26s <github@datamol.org> | 2018-12-26 07:06:37 +0530 |
| commit | a350fef6a82244e1206bac9da6a77fade378fcb9 (patch) | |
| tree | 65bcce958f085aa95beb129ec52eb42ee938330b | |
| parent | 26787f12cddb73da7f68f39e6e98f818b2cdfef6 (diff) | |
| download | mastodon_ynh-a350fef6a82244e1206bac9da6a77fade378fcb9.tar.gz mastodon_ynh-a350fef6a82244e1206bac9da6a77fade378fcb9.tar.bz2 mastodon_ynh-a350fef6a82244e1206bac9da6a77fade378fcb9.zip | |
Fix:command to make user admin
| -rw-r--r-- | scripts/install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install index c21ecf2..da834f5 100644 --- a/scripts/install +++ b/scripts/install @@ -237,8 +237,8 @@ account = Account.create!(username: '$admin_mastodon') user = User.create!(email: '$admin_mastodon_mail', password: '$admin_pass', account: account) CREATEUSER su mastodon <<SETADMIN -RAILS_ENV=production bin/bundle exec rails mastodon:make_admin USERNAME=$admin_mastodon -RAILS_ENV=production bin/bundle exec rails mastodon:confirm_email USER_EMAIL=$admin_mastodon_mail +RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --confirmed +RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --role admin SETADMIN ) |
