Skip to content

Commit

Permalink
fix timezone data ( Different entries in /etc/timezone and /etc/local…
Browse files Browse the repository at this point in the history
…e.conf files are not consistent. )
  • Loading branch information
GinoHarlos committed Nov 25, 2024
1 parent bbb07b0 commit c96d6aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,9 @@ RUN \

RUN find /var/log -type f -delete
RUN \
find \
/etc \
-maxdepth 1 -type f \
-name 'localtime' -or \
-name 'hostname' -or \
-name 'shadow' -or \
-name 'locale.conf' -or \
-name 'machine-id' -delete || /bin/true
for file in \
localtime timezone hostname shadow locale.conf machine-id; \
do rm --force /etc/${file}; done

RUN \
rm --force /var/lib/dbus/machine-id; \
Expand Down
5 changes: 3 additions & 2 deletions root/usr/lib/univention-container-mode/join/00-ucr-defaults
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ timedatectl set-timezone ${timezone:-UTC} >/dev/null 2>&1 && timedatectl --no-pa

ln --symbolic --force /usr/share/zoneinfo/${zone} \
/etc/localtime

dpkg-reconfigure -f noninteractive tzdata || /bin/true
}
#
# set timezone data
dpkg-reconfigure -f noninteractive tzdata || /bin/true
#
# set xorg/keyboard
ucrchanges+=("xorg/keyboard/options/XkbLayout=$(
echo ${language:-en_US} | ${awk} '\
Expand Down

0 comments on commit c96d6aa

Please sign in to comment.