]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/files/default/replication-cgi/HEADER.cgi
Convert planet HEADER scripts to python 3
[chef.git] / cookbooks / planet / files / default / replication-cgi / HEADER.cgi
index edde59d2774e94f6c6f005aaaeaeceed9899eee2..5e00a78e14d739c0e12a808345014bea9b178151 100644 (file)
@@ -1,14 +1,14 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
-print """
+print("""
 <html>
  <head>
   <title>OpenStreetMap replication diffs</title>
-  <link href="/style.css" rel="stylesheet" type="text/css">
+  <link href="https://planet.openstreetmap.org/style.css" rel="stylesheet" type="text/css">
  </head>
  <body>
-<img id="logo" src="/logo.png" alt="OSM logo" width="128" height="128">
+<img id="logo" src="https://planet.openstreetmap.org/logo.png" alt="OSM logo" width="128" height="128">
 <h1>planet.openstreetmap.org - replication diffs</h1>
 <p>OpenStreetMap is <i>open data</i>, licensed under the <a href="https://opendatacommons.org/licenses/odbl/">Open Data Commons Open Database License</a> (ODbL)</p>
 <p>&nbsp;</p>
-"""
+""")