Skip to content

Commit

Permalink
fixing depcheck helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Jul 28, 2011
1 parent 24aaa54 commit a1291e6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/extras/fedora/katello.init
Expand Up @@ -141,9 +141,15 @@ case "$1" in
;;
depcheck)
# check if required dependencies from Gemfile are installed
pushd $KATELLO_HOME
su $KATELLO_USER -s /bin/bash -c "bundle install --without 'test development' --local"
popd
TMPDIR=$(mktemp -d)
pushd $KATELLO_HOME >/dev/null
cp -R .bundle/ $TMPDIR
cp Gemfile* $TMPDIR
popd >/dev/null
pushd $TMPDIR >/dev/null
bundle install --without 'test development' --local
popd >/dev/null
rm -rf $TMPDIR
;;
initdb)
# stop if it is running
Expand Down

0 comments on commit a1291e6

Please sign in to comment.