2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-15 07:40:28 +00:00

Hide the `command "chronyd" not found' error message. And pass the $MASTER environment variable to setupntp.traditional (#5520)

This commit is contained in:
Gᴏɴɢ Jie
2018-08-20 10:21:40 +08:00
committed by yangsong
parent fe1732ff4b
commit 2d27aa8554

View File

@@ -125,11 +125,7 @@ then
esac
fi
# Unset xCAT passed environment variables
unset MASTER
unset NTPSERVERS
check_executes chronyd || USE_NTPD="yes"
check_executes chronyd >/dev/null 2>&1 || USE_NTPD="yes"
if [ -n "${USE_NTPD}" ]
then
@@ -140,6 +136,10 @@ then
exit 255
fi
# Unset xCAT passed environment variables
unset MASTER
unset NTPSERVERS
check_exec_or_exit cp cat logger
check_exec_or_exit systemctl timedatectl hwclock