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:
@@ -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
|
||||
|
Reference in New Issue
Block a user