mirror of
https://github.com/iAmInActions/random-scripts.git
synced 2024-11-21 11:30:10 +00:00
a33f898b79
Sets system time to server time using an http 404 error
3 lines
152 B
Bash
3 lines
152 B
Bash
#!/bin/bash
|
|
date -s "$(curl -I 'http://muellers-software.org/thispagegivesa404error' 2>/dev/null | grep -i '^date:' | sed 's/^[Dd]ate: //g' | tr -d ,)"
|