- Add nis-domainname.service for FreeIPA OBS-URL: https://build.opensuse.org/request/show/793411 OBS-URL: https://build.opensuse.org/package/show/network:utilities/hostname?expand=0&rev=17
11 lines
253 B
Bash
11 lines
253 B
Bash
#!/bin/bash
|
|
|
|
source /etc/sysconfig/network/config
|
|
|
|
if [ -n "${NETCONFIG_NIS_STATIC_DOMAIN}" ] && [ "${NETCONFIG_NIS_SETDOMAINNAME}" = "yes" ] && [ -x /usr/bin/nisdomainname ]; then
|
|
nisdomainname ${NETCONFIG_NIS_STATIC_DOMAIN}
|
|
exit $?
|
|
fi
|
|
|
|
exit 0
|