diff options
author | Maxim Devaev <[email protected]> | 2024-12-26 16:57:05 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-12-26 16:57:05 +0200 |
commit | 3b5d62dd989a885ce991b2783b7d880b5967e4c8 (patch) | |
tree | 1abb3e3e9cd6b4e2ccf93ce98d3704d9d677044e | |
parent | 38346bece13d15ec8e2b7f11f2d647a75ad269c4 (diff) |
enable kvmd-media when kvmd-janus or kvmd-janus-static enabled
-rw-r--r-- | kvmd.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd.install b/kvmd.install index 9f7c5f95..8a79b15d 100644 --- a/kvmd.install +++ b/kvmd.install @@ -102,8 +102,8 @@ EOF touch -t 200701011000 /etc/fstab fi - if [[ "$(vercmp "$2" 4.29)" -lt 0 ]]; then - if [ "$(systemctl is-enabled kvmd-janus || true)" = enabled ]; then + if [[ "$(vercmp "$2" 4.31)" -lt 0 ]]; then + if [[ "$(systemctl is-enabled kvmd-janus || true)" = enabled || "$(systemctl is-enabled kvmd-janus-static || true)" = enabled ]]; then systemctl enable kvmd-media || true fi fi |