2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

SLE15: Fix makenamed.conf

This commit is contained in:
Markus Hilger 2020-01-15 18:29:29 +01:00
parent d3511b2b0a
commit 36dd1d14db

View File

@ -30,7 +30,10 @@ is_lsb_ubuntu ()
DIRECTORY=/var/named
if [ -f /etc/SuSE-release ]; then
# check for SLES
grep -s -q sles /etc/os-release
IS_SLES=$?
if [ -f /etc/SuSE-release ] || [ $IS_SLES -eq 0 ]; then
DIRECTORY=/var/lib/named
fi
FILE=/etc/named.conf