File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2525 fi
2626fi
2727
28- if does_bin_exist ' chronyd' ; then
28+ if does_bin_exist ' chrony ' ' chronyd' ; then
2929 disable_service ' ntpd'
3030 disable_service ' systemd-timesyncd'
31- enable_service ' chronyd'
31+
32+ if does_bin_exist ' chrony' ; then
33+ enable_service ' chrony'
34+ elif does_bin_exist ' chronyd' ; then
35+ enable_service ' chronyd'
36+ fi
3237elif does_bin_exist ' ntpd' ; then
3338 enable_service ' ntpd'
3439 disable_service ' systemd-timesyncd'
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ if [ ! -f "${LOCALTIME_FILE_PATH}" ]; then
4242 echo ' Setting up the local time...'
4343
4444 ln -sf ' /usr/share/zoneinfo/Europe/Bucharest' " ${LOCALTIME_FILE_PATH} "
45- hwclock --systohc
45+ does_bin_exist ' hwclock ' && hwclock --systohc
4646fi
4747
4848# Update the X11 keyboard layout definitions
You can’t perform that action at this time.
0 commit comments