File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1214,10 +1214,14 @@ if [ -z "$(grep ^/usr/sbin/nologin /etc/shells)" ]; then
12141214fi
12151215
12161216# Configuring NTP
1217- if [ ! -f " /etc/default/ntpsec-ntpdate " ]; then
1218- sed -i ' s/#NTP=/NTP=pool.ntp.org/' /etc/systemd/timesyncd.conf
1219- systemctl enable systemd-timesyncd
1220- systemctl start systemd-timesyncd
1217+ if [ ! -f " /etc/default/ntpsec-ntpdate" ]; then
1218+ if [ -f /etc/systemd/timesyncd.conf ]; then
1219+ # Not installed by default in debian 12, consider add systemd-timesyncd to
1220+ # package list for install
1221+ sed -i ' s/#NTP=/NTP=pool.ntp.org/' /etc/systemd/timesyncd.conf
1222+ systemctl enable systemd-timesyncd
1223+ systemctl start systemd-timesyncd
1224+ fi
12211225fi
12221226# Restrict access to /proc fs
12231227# Prevent unpriv users from seeing each other running processes
You can’t perform that action at this time.
0 commit comments