Skip to content

Commit

Permalink
Merge pull request #1679 from bgeuken/cleanup_assets
Browse files Browse the repository at this point in the history
Cleanup assets and fix package builds
  • Loading branch information
adrianschroeter committed Apr 5, 2016
2 parents 421df4f + c1457a5 commit 671d49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/obs-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ for i in production.rb ; do
done
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 )
RAILS_ENV=production bundle exec rake secret > $SECRET_KEY
fi
chmod 0640 $SECRET_KEY
chown root.www $SECRET_KEY
Expand Down Expand Up @@ -646,7 +646,7 @@ chown %{apache_user}:%{apache_group} /srv/www/obs/api/log/production.log


/srv/www/obs/api/config/locales
%dir /srv/www/obs/api/vendor
/srv/www/obs/api/vendor
/srv/www/obs/api/vendor/diststats

#
Expand Down

0 comments on commit 671d49d

Please sign in to comment.