Skip to content
Snippets Groups Projects
Commit 6d8729b7 authored by Andrew Lee (李健秋)'s avatar Andrew Lee (李健秋)
Browse files

debian/obs-api.postinst: drop path in command.

parent 2b8dbffb
Branches
Tags
No related merge requests found
...@@ -66,7 +66,7 @@ API_ROOT=/usr/share/obs/api ...@@ -66,7 +66,7 @@ API_ROOT=/usr/share/obs/api
run_in_api () { run_in_api () {
export RAILS_ENV="production" export RAILS_ENV="production"
# startproc only works for classical daemons # 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 run_in_api rake assets:precompile RAILS_ENV=production RAILS_GROUPS=assets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment