Skip to content

Commit

Permalink
[api][webui] spec file: Update generation of secret token
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Apr 6, 2016
1 parent 06a975a commit b4cdb91
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 @@ -483,7 +483,7 @@ for i in production.rb ; do
done

if [ ! -e %{secret_key_file} ]; then
( umask 0077; dd if=/dev/urandom bs=256 count=1 2>/dev/null |sha256sum| cut -d\ -f 1 > %{secret_key_file} )
( umask 0077; RAILS_ENV=production bundle exec rake.ruby2.3 secret > %{secret_key_file} )
fi
chmod 0640 %{secret_key_file}
chown root.www %{secret_key_file}
Expand Down

0 comments on commit b4cdb91

Please sign in to comment.