Skip to content

Commit

Permalink
[dist] do not fail without sphinx db
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jul 8, 2014
1 parent 3b6c021 commit 0d109a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/obs-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ for i in production.rb ; do
fi
done
# sphinx db is very often incompatible, so wipe it for re-index
rm /srv/www/obs/api/db/sphinx/production/*
rm -f /srv/www/obs/api/db/sphinx/production/* 2> /dev/null
SECRET_KEY="/srv/www/obs/api/config/secret.key"
if [ ! -e "$SECRET_KEY" ]; then
( umask 0077; dd if=/dev/urandom bs=256 count=1 2>/dev/null |sha256sum| cut -d\ -f 1 >$SECRET_KEY )
Expand Down

0 comments on commit 0d109a0

Please sign in to comment.