From 477783ea53f7c894912ecd7dedde74133863123e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 21 Mar 2019 05:47:44 +0100 Subject: [PATCH] fix user creation --- scripts/install | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index 7ef69cc..6a8dcfb 100644 --- a/scripts/install +++ b/scripts/install @@ -200,18 +200,7 @@ pushd "$final_path/live" sudo -u "$app" echo "SAFETY_ASSURED=1">> .env.production sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails db:migrate --quiet sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile --quiet -popd - -#================================================= -# CREATE MASTODON ADMIN USER -#================================================= -ynh_print_info "Creating Mastodon Admin User..." - -# Create user -pushd "$final_path/live" - sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl accounts create '$admin_mastodon' --email='$admin_mastodon_mail' > acc.txt - sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --confirm - sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --role admin + sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl accounts create "$admin_mastodon" --email="$admin_mastodon_mail" --confirmed --role=admin > acc.txt popd admin_pass=$( tail -1 $final_path/live/acc.txt | head -1 | cut -c 15- )