mirror of
https://github.com/umputun/reproxy.git
synced 2024-11-23 17:51:32 +03:00
16 lines
299 B
Bash
Executable File
16 lines
299 B
Bash
Executable File
#!/sbin/dinit /bin/sh
|
|
|
|
uid=$(id -u)
|
|
|
|
if [[ ${uid} -eq 0 ]]; then
|
|
echo "init container"
|
|
|
|
# set container's time zone
|
|
cp /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
|
|
echo "${TIME_ZONE}" >/etc/timezone
|
|
echo "set timezone ${TIME_ZONE} ($(date))"
|
|
fi
|
|
|
|
echo "execute \"$@\""
|
|
exec $@
|