distgit: iad2 also runs rhel8 and thus python 3.6 so adjust the path to the static files

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-06-04 14:27:01 +02:00
parent 64773f2049
commit aacd00cdc1

View file

@ -99,7 +99,7 @@ Alias /robots.txt /var/www/robots-src.txt
# If it does, use it
RewriteRule "^/static/(.*)" "/usr/share/pagure_dist_git/static/$1" [L]
# Otherwise back out and use the default static folder/theme
{% if env == "staging" %}
{% if env == "staging" or datacenter == "iad2" %}
RewriteRule "^/static/(.*)" "/usr/lib/python3.6/site-packages/pagure/static/$1" [L]
{% else %}
RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pagure/static/$1" [L]