enable kvmd-media when kvmd-janus or kvmd-janus-static enabled

This commit is contained in:
Maxim Devaev 2024-12-26 16:57:05 +02:00
parent 38346bece1
commit 3b5d62dd98

View File

@ -102,8 +102,8 @@ EOF
touch -t 200701011000 /etc/fstab touch -t 200701011000 /etc/fstab
fi fi
if [[ "$(vercmp "$2" 4.29)" -lt 0 ]]; then if [[ "$(vercmp "$2" 4.31)" -lt 0 ]]; then
if [ "$(systemctl is-enabled kvmd-janus || true)" = enabled ]; then if [[ "$(systemctl is-enabled kvmd-janus || true)" = enabled || "$(systemctl is-enabled kvmd-janus-static || true)" = enabled ]]; then
systemctl enable kvmd-media || true systemctl enable kvmd-media || true
fi fi
fi fi