aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-03-20 12:14:29 +0100
committeryalh76 <yalh@yahoo.com>2019-03-20 12:14:29 +0100
commitf8096d8c256c021d290701b41767b77fdecef1c1 (patch)
tree43355c0ebbfcfecaecabd15a04938a2f53ecbd5d
parentd903267166295dae52a0165107da0bc64411e651 (diff)
downloadmastodon_ynh-f8096d8c256c021d290701b41767b77fdecef1c1.tar.gz
mastodon_ynh-f8096d8c256c021d290701b41767b77fdecef1c1.tar.bz2
mastodon_ynh-f8096d8c256c021d290701b41767b77fdecef1c1.zip
Update 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- )