2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3198] fix reinstall.sh for YANG modules

This commit is contained in:
Andrei Pavel
2024-01-25 21:05:27 +02:00
parent b10991e563
commit 3f7e8d65e0

View File

@@ -106,7 +106,7 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH-}:${sysrepo}/lib:${sysrepo}/lib64"
# Check if module is installed.
is_module_installed() {
module=${1}
if test "$("${sysrepo}/bin/sysrepoctl" -l | grep -F '| I' | cut -d ' ' -f 1 | tail -n +7 | head -n -1 | grep -Ec "^${module}")" -eq 0; then
if test "$("${sysrepo}/bin/sysrepoctl" -l | grep -F '| I' | cut -d ' ' -f 1 | grep -Ec "^${module}")" -eq 0; then
# not installed
return 1
fi