footer.php: Improve Pi-Hole update instruction for Docker image

Running `pihole -up` in the Docker image release is not allowed, and
will receive this prompt msg: `Function not supported in Docker images`,
should display a different prompt message for Docker image release.

Signed-off-by: Peter Dave Hello <hsu@peterdavehello.org>
This commit is contained in:
Peter Dave Hello
2022-02-12 22:00:44 +08:00
parent 10984d5287
commit 66c2a9c6d5

View File

@@ -103,9 +103,13 @@
</li>
</ul>
<?php if($core_update || $web_update || $FTL_update) { ?>
<?php if($dockerTag) { ?>
<p>To install updates, <a href="https://github.com/pi-hole/docker-pi-hole#upgrading--reconfiguring" rel="noopener" target="_blank">replace this old container with a fresh upgraded image</a>.</p>
<?php } else { ?>
<p>To install updates, run <code><a href="https://docs.pi-hole.net/main/update/" rel="noopener" target="_blank">pihole -up</a></code>.</p>
<?php } ?>
<?php } ?>
<?php } ?>
</div>
</div>
</footer>