From e3bda8a9707ebc346ce66f027f1f06b5a85d9c83 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 25 Aug 2025 11:58:19 +0200 Subject: [PATCH] Ensure time has been synced before updating so we don't get SSL errors --- bin/omarchy-cmd-timesync | 3 +++ bin/omarchy-update | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100755 bin/omarchy-cmd-timesync diff --git a/bin/omarchy-cmd-timesync b/bin/omarchy-cmd-timesync new file mode 100755 index 00000000..71517f06 --- /dev/null +++ b/bin/omarchy-cmd-timesync @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo systemctl restart systemd-timesyncd diff --git a/bin/omarchy-update b/bin/omarchy-update index 3c57c3d2..bb9ad66c 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -2,9 +2,7 @@ set -e -# Ensure the clock is synced before we start -sudo systemctl restart systemd-timesyncd - +omarchy-cmd-timesync omarchy-snapshot create || [ $? -eq 127 ] omarchy-update-git omarchy-migrate