Skip to content

Commit

Permalink
fix date to have valid repo keys
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi committed Apr 9, 2024
1 parent c9c36cd commit 1176295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-image/first-boot.bash
Expand Up @@ -151,9 +151,9 @@ elif [[ -n $wifiSSID ]] && grep -qs "openHABian" /etc/wpa_supplicant/wpa_supplic
fi

# fix eventually wrong date (it is the kernel compile date on Raspi OS !) to have valid repo keys
if [[ $(date +%y%m%d) -lt 240401 ]]; then
if [[ $(date +%y%m%d) -lt 240410 ]]; then
systemctl stop systemd-timesyncd
timedatectl set-time "2024-04-09 00:00:00"
timedatectl set-time "2024-04-10 00:00:00"
systemctl start systemd-timesyncd
fi

Expand Down

0 comments on commit 1176295

Please sign in to comment.