Skip to content
Snippets Groups Projects
Commit 220d91c9 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Make cache index totally static.

parent 45e06d9a
No related branches found
No related tags found
No related merge requests found
......@@ -5,16 +5,8 @@ import utils
def setup(interactive=True):
dir_path = utils.get_dir(__file__)
rc, hostname = utils.exec_cmd('hostname')
if rc != 0 or not hostname:
hostname = 'cache'
cmds = [
'mkdir -p /var/www/cache',
dict(
line='write',
template='%s/index.html' % dir_path,
target='/var/www/cache/index.html',
params=dict(hostname=hostname),
),
'cp %s/index.html /var/www/cache/index.html' % dir_path,
]
utils.run_commands(cmds)
......@@ -12,9 +12,6 @@
<body>
<h1>UbiCast cache server</h1>
<hr/>
<p>Hosted on server {{ hostname }}.</p>
<br/>
<hr/>
<p>Powered by UbiCast -- <a href="https://www.ubicast.eu">https://www.ubicast.eu</a></p>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment