1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Fix:command to make user admin

This commit is contained in:
anmol26s 2018-12-26 07:06:37 +05:30
parent 26787f12cd
commit a350fef6a8

View file

@ -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
)