aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install6
1 files 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 <<SETADMIN
-( RAILS_ENV=production bin/tootctl accounts create '$admin_mastodon' --email='$admin_mastodon_mail' > 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- )