Configure busybox NTP client instead of sntpc
This commit is contained in:
parent
91e998a24a
commit
3fc44dee2b
6
basic.sh
6
basic.sh
@ -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
1
basic/etc/conf.d/ntpd
Normal file
@ -0,0 +1 @@
|
||||
NTPD_OPTS="-N -p tik.cesnet.cz -p tak.cesnet.cz"
|
Loading…
Reference in New Issue
Block a user