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

Setting timezone based on IP geolocation now uses python3, fixes #862 #864

Merged
merged 1 commit into from
May 3, 2020
Merged
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
6 changes: 3 additions & 3 deletions functions/system.bash
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ timezone_setting() {
else
echo -n "$(timestamp) [openHABian] Setting timezone based on IP geolocation... "
if ! command -v tzupdate &>/dev/null; then
cond_redirect apt-get -y install python-pip
if ! cond_redirect pip install --upgrade tzupdate; then echo "FAILED (pip)"; return 1; fi
cond_redirect apt-get -y install python3-pip
if ! cond_redirect pip3 install --upgrade tzupdate; then echo "FAILED (pip3)"; return 1; fi
fi
cond_redirect pip install --upgrade tzupdate
cond_redirect pip3 install --upgrade tzupdate
cond_redirect tzupdate
fi
# shellcheck disable=SC2181
Expand Down