Configure busybox NTP client instead of sntpc

This commit is contained in:
Disassembler 2018-02-06 16:59:00 +01:00
parent 91e998a24a
commit 3fc44dee2b
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/basic
# Install packages
apk --no-cache add --virtual .useful curl git file htop libressl openssh-server openssh-sftp-server sntpc
apk --no-cache add --virtual .useful curl git file htop libressl openssh-server openssh-sftp-server
apk --no-cache add docker gettext kbd-misc python2 nginx
# Copy profile files and settings
@ -27,6 +27,10 @@ cp ${SOURCE_DIR}/etc/issue.template /etc/issue.template
cp ${SOURCE_DIR}/sbin/issue-gen /sbin/issue-gen
>/etc/motd
# Configure NTP client
cp ${SOURCE_DIR}/etc/conf.d/ntpd /etc/conf.d/ntpd
rc-update add ntpd boot
# Create a self-signed certificate
mkdir /etc/ssl/private
openssl req -x509 -new -out /etc/ssl/certs/services.pem -keyout /etc/ssl/private/services.key -nodes -days 3654 -subj "/C=CZ/CN=$(hostname -f)"

1
basic/etc/conf.d/ntpd Normal file
View File

@ -0,0 +1 @@
NTPD_OPTS="-N -p tik.cesnet.cz -p tak.cesnet.cz"