Skip to content

Commit

Permalink
[dist] added cd to config dir for key generation in obs-api
Browse files Browse the repository at this point in the history
  • Loading branch information
M0ses committed Jan 27, 2017
1 parent ef0e499 commit 5ff989a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/obs-server.spec
Expand Up @@ -497,7 +497,10 @@ for i in production.rb ; do
done

if [ ! -e %{secret_key_file} ]; then
pushd .
cd /srv/www/obs/api/config
( umask 0077; RAILS_ENV=production bundle.ruby2.4 exec rails.ruby2.4 secret > %{secret_key_file} ) || exit 1
popd
fi
chmod 0640 %{secret_key_file}
chown root.www %{secret_key_file}
Expand Down

0 comments on commit 5ff989a

Please sign in to comment.