fix(scripts): improve offline resilience and restore missing update scripts
All checks were successful
Check / eval-and-lint (push) Successful in 7m5s
All checks were successful
Check / eval-and-lint (push) Successful in 7m5s
This commit is contained in:
18
features/scripts/utils/nomarchy-update-time
Executable file
18
features/scripts/utils/nomarchy-update-time
Executable 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."
|
||||
Reference in New Issue
Block a user