mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[enh] Use the email address from admin user
This commit is contained in:
parent
790cfd986e
commit
8040d269b1
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ TRAP_ON # Active trap to stop the script if an error is detected.
|
|||
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
admin_mastodon=$YNH_APP_ARG_ADMIN
|
||||
admin_mastodon_mail=$(ynh_user_get_info $admin_mastodon 'mail')
|
||||
admin_pass=$YNH_APP_ARG_PASSWD
|
||||
language=$YNH_APP_ARG_LANGUAGE
|
||||
|
||||
|
@ -190,7 +191,7 @@ sudo su - $app <<UCOMMANDS
|
|||
pushd ~/live
|
||||
RAILS_ENV=production bundle exec rails c
|
||||
account = Account.create!(username: '$admin_mastodon')
|
||||
user = User.create!(email: '$admin_mastodon@$domain', password: '$admin_pass', account: account)
|
||||
user = User.create!(email: '$admin_mastodon_mail', password: '$admin_pass', account: account)
|
||||
UCOMMANDS
|
||||
|
||||
# Create administrator & confirm user
|
||||
|
|
Loading…
Add table
Reference in a new issue