diff --git a/script/foreman-rake b/script/foreman-rake index cfd462820c0..6340b40612d 100755 --- a/script/foreman-rake +++ b/script/foreman-rake @@ -15,5 +15,5 @@ if [ $# -eq 0 ]; then elif [ "$USERNAME" = foreman ]; then RUBYOPT=-W0 RAILS_ENV=production $CMD "$@" else - su foreman -s /bin/bash -c 'RUBYOPT=-W0 RAILS_ENV=production "$0" "$@"' -- $CMD "$@" + runuser - foreman -s /bin/bash -c 'RUBYOPT=-W0 RAILS_ENV=production "$0" "$@"' -- $CMD "$@" fi