From 220d91c98ee2c84f32c05b968ba061e1a413473d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Wed, 8 Feb 2017 16:27:58 +0100 Subject: [PATCH] Make cache index totally static. --- 8.Cache/1.Install_cache/0_setup.py | 10 +--------- 8.Cache/1.Install_cache/index.html | 3 --- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/8.Cache/1.Install_cache/0_setup.py b/8.Cache/1.Install_cache/0_setup.py index 510dd815..471b8c8c 100644 --- a/8.Cache/1.Install_cache/0_setup.py +++ b/8.Cache/1.Install_cache/0_setup.py @@ -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) diff --git a/8.Cache/1.Install_cache/index.html b/8.Cache/1.Install_cache/index.html index 3558358f..2881bde2 100644 --- a/8.Cache/1.Install_cache/index.html +++ b/8.Cache/1.Install_cache/index.html @@ -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> -- GitLab