#!/bin/bash # SPDX-Version: 3.0 # SPDX-CreationInfo: 2025-10-10; WEIDNER, Marc S.; # SPDX-ExternalRef: GIT https://git.coresecret.dev/msw/CISS.debian.live.builder.git # SPDX-FileContributor: WEIDNER, Marc S.; Centurion Intelligence Consulting Agency # SPDX-FileCopyrightText: 2024-2025; WEIDNER, Marc S.; # SPDX-FileType: SOURCE # SPDX-License-Identifier: EUPL-1.2 OR LicenseRef-CCLA-1.0 # SPDX-LicenseComment: This file is part of the CISS.debian.installer.secure framework. # SPDX-PackageName: CISS.debian.live.builder # SPDX-Security-Contact: security@coresecret.eu set -Ceuo pipefail printf "\e[95m++++ ++++ ++++ ++++ ++++ ++++ ++ 🧪 '%s' starting ... \e[0m\n" "${0}" mkdir -p /var/log/chrony export DEBIAN_FRONTEND="noninteractive" apt-get install chrony -y systemctl enable chrony.service mv /etc/chrony/chrony.conf /root/.ciss/dlb/backup/chrony.conf.bak chmod 0644 /root/.ciss/dlb/backup/chrony.conf.bak cat << EOF >| /etc/chrony/chrony.conf # SPDX-Version: 3.0 # SPDX-CreationInfo: 2025-10-10; WEIDNER, Marc S.; # SPDX-ExternalRef: GIT https://git.coresecret.dev/msw/CISS.debian.live.builder.git # SPDX-FileContributor: WEIDNER, Marc S.; Centurion Intelligence Consulting Agency # SPDX-FileCopyrightText: 2024-2025; WEIDNER, Marc S.; # SPDX-FileType: SOURCE # SPDX-License-Identifier: EUPL-1.2 OR LicenseRef-CCLA-1.0 # SPDX-LicenseComment: This file is part of the CISS.debian.installer.secure framework. # SPDX-PackageName: CISS.debian.live.builder # SPDX-Security-Contact: security@coresecret.eu # Include configuration files found in /etc/chrony/conf.d. confdir /etc/chrony/conf.d driftfile /var/lib/chrony/chrony.drift keyfile /etc/chrony/chrony.keys logdir /var/log/chrony ntsdumpdir /var/lib/chrony sourcedir /run/chrony-dhcp sourcedir /etc/chrony/sources.d log tracking measurements statistics authselectmode require server ntp.ripe.net iburst nts minpoll 5 maxpoll 9 server ptbtime3.ptb.de iburst nts minpoll 5 maxpoll 9 server ptbtime2.ptb.de iburst nts minpoll 5 maxpoll 9 server ptbtime1.ptb.de iburst nts minpoll 5 maxpoll 9 server ntp13.metas.ch iburst nts minpoll 5 maxpoll 9 server time-c-b.nist.gov iburst nts minpoll 5 maxpoll 9 server sth1.ntp.se iburst nts minpoll 5 maxpoll 9 server ntp0.fau.de iburst nts minpoll 5 maxpoll 9 leapsectz right/UTC leapsecmode system maxupdateskew 100.0 rtcsync makestep 1 3 EOF chmod 0644 /etc/chrony/chrony.conf printf "\e[92m++++ ++++ ++++ ++++ ++++ ++++ ++ ✅ '%s' applied successfully. \e[0m\n" "${0}" exit 0 # vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh