aboutsummaryrefslogtreecommitdiff
path: root/scripts
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
parent05e04a31490bb0ce04b0ad2d0d9133c83614650d (diff)
downloadmastodon_ynh-560506c3e74bc7a2f7923b537d27c2b66079ce47.tar.gz
mastodon_ynh-560506c3e74bc7a2f7923b537d27c2b66079ce47.tar.bz2
mastodon_ynh-560506c3e74bc7a2f7923b537d27c2b66079ce47.zip
fix bin/tootctl
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install4
-rw-r--r--scripts/upgrade2
2 files changed, 3 insertions, 3 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")
diff --git a/scripts/upgrade b/scripts/upgrade
index 27aaff0..2e8753b 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -251,7 +251,7 @@ pushd "$final_path/live"
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/bundle exec rails assets:clean
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/bundle exec rails assets:precompile
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/bundle exec rails db:migrate
- sudo -u $app RAILS_ENV=production $ynh_ruby_load_path $ruby_path/tootctl cache clear
+ sudo -u $app RAILS_ENV=production $ynh_ruby_load_path bin/tootctl cache clear
popd
#=================================================