diff --git a/8.Cache/1.Install_cache/0_setup.py b/8.Cache/1.Install_cache/0_setup.py index 510dd81562d8ebac7f17b0e5859862adddb20a01..471b8c8c64671b28013094dc4a3f3fe71d1f253d 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 3558358ff6fd5ffbe0657745218e64c10b95e33b..2881bde2101be1ab3bb3ab89e78a5bb2f3414d2d 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>