Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions docker/scripts/dev_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,17 +276,15 @@ function check_target_arch() {

function check_timezone_cn() {
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# time_zone=$(timedatectl | grep "Time zone" | xargs)
# time_zone=$(date +"%z")

# for tz in "${TIMEZONE_CN[@]}"; do
# if [[ "${time_zone}" == "${tz}" ]]; then
# GEOLOC="cn"
# return 0
# fi
# done
# disable docker.io image source
GEOLOC="cn"
time_zone=$(timedatectl | grep "Time zone" | xargs)
time_zone=$(date +"%z")

for tz in "${TIMEZONE_CN[@]}"; do
if [[ "${time_zone}" == "${tz}" ]]; then
GEOLOC="cn"
return 0
fi
done
}

function setup_devices_and_mount_local_volumes() {
Expand Down