fix(scripts): improve offline resilience and restore missing update scripts
All checks were successful
Check / eval-and-lint (push) Successful in 7m5s

This commit is contained in:
Bernardo Magri
2026-06-01 20:07:08 +01:00
parent 6ed2ca3d78
commit 1e6becd42d
6 changed files with 67 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Nomarchy Time Sync Script
# Force sync system time using systemd-timesyncd
set -e
echo "Syncing system time..."
if ! sudo systemctl restart systemd-timesyncd; then
echo "Error: Failed to restart systemd-timesyncd. Check internet connection."
exit 1
fi
# Wait a moment for sync
sleep 2
echo "Current time: $(date)"
echo "Time sync complete."