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