Skip to content

Commit

Permalink
Merge "Reload nginx during syncs"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Nov 21, 2017
2 parents 330459b + 94255aa commit 956a942
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/repo_prepost_cmd.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ function chg_owner {
CMD=$1
case $CMD in
pre-www)
systemctl stop nginx
rm /etc/nginx/sites-enabled/openstack-slushee.vhost
systemctl reload nginx
;;
post-www)
systemctl start nginx
ln -s /etc/nginx/sites-available/openstack-slushee.vhost /etc/nginx/sites-enabled/openstack-slushee.vhost
systemctl reload nginx
;;
pre-git)
systemctl stop git.socket
Expand Down

0 comments on commit 956a942

Please sign in to comment.