diff options
| author | yalh76 <yalh@yahoo.com> | 2019-03-21 05:47:44 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-03-21 05:47:44 +0100 |
| commit | 477783ea53f7c894912ecd7dedde74133863123e (patch) | |
| tree | fafa5d77f0156eb26faede2134b76ef762e7b3ef | |
| parent | 4325834c7af35fc15d65e00e5ca6033ab94452dc (diff) | |
| download | mastodon_ynh-477783ea53f7c894912ecd7dedde74133863123e.tar.gz mastodon_ynh-477783ea53f7c894912ecd7dedde74133863123e.tar.bz2 mastodon_ynh-477783ea53f7c894912ecd7dedde74133863123e.zip | |
fix user creation
| -rw-r--r-- | scripts/install | 13 |
1 files changed, 1 insertions, 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- ) |
