aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-03-06 02:15:48 +0100
committeryalh76 <yalh@yahoo.com>2021-03-06 02:15:48 +0100
commit560506c3e74bc7a2f7923b537d27c2b66079ce47 (patch)
treecffe012a8d8107959ed54c64c36ff24ea6d5e562 /scripts/install
parent05e04a31490bb0ce04b0ad2d0d9133c83614650d (diff)
downloadmastodon_ynh-560506c3e74bc7a2f7923b537d27c2b66079ce47.tar.gz
mastodon_ynh-560506c3e74bc7a2f7923b537d27c2b66079ce47.tar.bz2
mastodon_ynh-560506c3e74bc7a2f7923b537d27c2b66079ce47.zip
fix bin/tootctl
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install
index 208b0d2..977f0b6 100644
--- a/scripts/install
+++ b/scripts/install
@@ -191,8 +191,8 @@ pushd "$final_path/live"
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/bundle exec rails db:setup --quiet
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/bundle exec rails assets:precompile --quiet
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt
- sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > /dev/null
- sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/tootctl accounts modify "$admin" --approve
+ sudo -u $app RAILS_ENV=production $ynh_ruby_load_path bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > /dev/null
+ sudo -u $app RAILS_ENV=production $ynh_ruby_load_path bin/tootctl accounts modify "$admin" --approve
popd
vapid_private_key=$(grep -oP "VAPID_PRIVATE_KEY=\K.+" "$final_path/live/key.txt")