From f8096d8c256c021d290701b41767b77fdecef1c1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 20 Mar 2019 12:14:29 +0100 Subject: [PATCH] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index e8e8b18..4252c5a 100644 --- a/scripts/install +++ b/scripts/install @@ -232,9 +232,9 @@ systemctl start "$app-web.service" "$app-sidekiq.service" "$app-streaming.servic ( cd "$final_path/live" su mastodon < acc.txt ) -RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --confirm -RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --role admin +( env PATH=$PATH RAILS_ENV=production bin/tootctl accounts create '$admin_mastodon' --email='$admin_mastodon_mail' > acc.txt ) +env PATH=$PATH RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --confirm +env PATH=$PATH RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --role admin SETADMIN ) admin_pass=$( cd $final_path/live && tail -1 acc.txt | head -1 | cut -c 15- )