From c4a8e6d01b75373cbdae5beb1a763f704e354e13 Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Fri, 8 May 2020 23:08:27 +0200 Subject: [PATCH] Fix multi instance installation --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 6d99c2e..0ba4e79 100755 --- a/scripts/install +++ b/scripts/install @@ -227,7 +227,7 @@ systemctl reload nginx #================================================= ynh_script_progression --message="Create admin..." --weight=1 pushd $final_path/diaspora -sudo -u diaspora /bin/bash --login << EOF +sudo -u $app /bin/bash --login << EOF RAILS_ENV=production bundle exec rails console << END user = User.build({username: '$admin', email: '$admin_email', password: '$admin_password', password_confirmation: '$admin_password' }) user.seed_aspects