Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add tzdata install in dev_setup.sh #16791

Closed
wants to merge 1 commit into from
Closed
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
26 changes: 26 additions & 0 deletions scripts/setup/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,31 @@ function install_mysql_client {
esac
}

function install_tzdata {
PACKAGE_MANAGER=$1

echo "==> installing tzdata..."

case "$PACKAGE_MANAGER" in
apt-get)
install_pkg tzdata "$PACKAGE_MANAGER"
;;
pacman)
install_pkg tzdata "$PACKAGE_MANAGER"
;;
apk)
install_pkg tzdata "$PACKAGE_MANAGER"
;;
yum | dnf | brew)
install_pkg tzdata "$PACKAGE_MANAGER"
;;
*)
echo "Unable to install tzdata with package manager: $PACKAGE_MANAGER"
exit 1
;;
esac
}

function install_sqlite3 {
PACKAGE_MANAGER=$1

Expand Down Expand Up @@ -652,6 +677,7 @@ fi

if [[ "$INSTALL_DEV_TOOLS" == "true" ]]; then
install_mysql_client "$PACKAGE_MANAGER"
install_tzdata "$PACKAGE_MANAGER"
install_pkg git "$PACKAGE_MANAGER"
install_python3 "$PACKAGE_MANAGER"
if [[ "$PACKAGE_MANAGER" == "apt-get" ]]; then
Expand Down
Loading