Suppress WireGuard on dashboard when not installed

This commit is contained in:
bergware
2019-08-13 09:51:40 +02:00
parent 29a7f7caf0
commit 239fbc8932

View File

@@ -56,7 +56,7 @@ function vpn_peers($file) {
$dockerd = pgrep('dockerd');
$libvirtd = pgrep('libvirtd');
$apcupsd = file_exists('/var/run/apcupsd.pid');
$wireguard = is_executable('/usr/bin/wg');
$wireguard = is_executable('/usr/bin/wg') && file_exists('/var/log/plugins/dynamix.wireguatd.plg');
$started = $var['fsState']=='Started';
$sleep = isset($display['sleep']);
$cache_pool = $var['cacheSbNumDisks'];