Hide Docker or VM page when service is not running

This commit is contained in:
bergware
2018-08-22 10:05:25 +02:00
parent e453b6f071
commit 795e2fa577
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
Menu="Tasks:60"
Type="xmenu"
Code="f100"
Cond="exec(\"grep -o '^DOCKER_ENABLED=.yes' /boot/config/docker.cfg 2>/dev/null\")"
Cond="pgrep('dockerd')!==false"
----
<?PHP
/* Copyright 2005-2017, Lime Technology

View File

@@ -1,7 +1,7 @@
Menu="Tasks:70"
Type="xmenu"
Code="f108"
Cond="exec(\"grep -o '^SERVICE=.enable' /boot/config/domain.cfg 2>/dev/null\")"
Cond="pgrep('libvirtd')!==false"
---
<?PHP
/* Copyright 2005-2017, Lime Technology