Skip to content

Commit

Permalink
Merge pull request #5156 from ChrisBr/deployment-time
Browse files Browse the repository at this point in the history
Touch last_deploy file in %post to have correct deploy time
  • Loading branch information
ChrisBr committed Jun 20, 2018
2 parents dab3871 + 44fa357 commit 0775696
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/obs-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ touch /srv/www/obs/api/log/production.log
chown %{apache_user}:%{apache_group} /srv/www/obs/api/log/production.log

%restart_on_update memcached
# We need to touch the last_deploy file in the post hook
# to update the timestamp which we use to display the
# last deployment time in the API
touch /srv/www/obs/api/last_deploy || true

%postun -n obs-api
%insserv_cleanup
Expand Down

0 comments on commit 0775696

Please sign in to comment.