Initial import
This commit is contained in:
0
base/rootfs/etc/cont-init.d/.gitkeep
Normal file
0
base/rootfs/etc/cont-init.d/.gitkeep
Normal file
6
base/rootfs/etc/cont-init.d/01-set-timezone
Normal file
6
base/rootfs/etc/cont-init.d/01-set-timezone
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
if [ $TZ ]; then
|
||||
[ -f /usr/share/zoneinfo/$TZ ] && cp /usr/share/zoneinfo/$TZ /etc/localtime || echo "WARNING: $TZ is not a valid time zone."
|
||||
[ -f /usr/share/zoneinfo/$TZ ] && echo "$TZ" > /etc/timezone
|
||||
fi
|
||||
Reference in New Issue
Block a user