Skip to content

Commit 222c55a

Browse files
committed
add ntp
1 parent b8759c6 commit 222c55a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ RUN groupadd -r openldap && useradd -r -g openldap openldap
99

1010
# Install OpenLDAP and ldap-utils (and ssl-kit from baseimage), remove default ldap db
1111
RUN apt-get -y update && /sbin/enable-service ssl-kit \
12-
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes --no-install-recommends slapd ldap-utils \
12+
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes --no-install-recommends \
13+
slapd ldap-utils ntp \
1314
&& rm -rf /var/lib/ldap /etc/ldap/slapd.d
1415

1516
# Add OpenLDAP assets

image/service/slapd/container-start.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ chown -R openldap:openldap /var/lib/ldap
1313
chown -R openldap:openldap /etc/ldap
1414
chown -R openldap:openldap /osixia/slapd
1515

16+
/etc/init.d/ntp restart
17+
1618
# container first start
1719
if [ ! -e "$FIRST_START_DONE" ]; then
1820

0 commit comments

Comments
 (0)