diff --git a/debian/obs-api.postinst b/debian/obs-api.postinst index e11c0272753d5ea984400628d205cd61fa50d618..f07a997e2fb2ba7f8a961086765a5e8b05457f71 100644 --- a/debian/obs-api.postinst +++ b/debian/obs-api.postinst @@ -66,7 +66,7 @@ API_ROOT=/usr/share/obs/api run_in_api () { export RAILS_ENV="production" # startproc only works for classical daemons - chroot --userspec=www-data:www-data / /bin/bash -c "cd $API_ROOT && /usr/bin/bundle exec $*" + chroot --userspec=www-data:www-data / /bin/bash -c "cd $API_ROOT && bundle exec $*" } run_in_api rake assets:precompile RAILS_ENV=production RAILS_GROUPS=assets