mirror of
https://github.com/iAmInActions/random-scripts.git
synced 2024-11-10 06:00:12 +00:00
Add setdatefromhttp.sh
Sets system time to server time using an http 404 error
This commit is contained in:
parent
2694664aee
commit
a33f898b79
2
setdatefromhttp.sh
Normal file
2
setdatefromhttp.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
date -s "$(curl -I 'http://muellers-software.org/thispagegivesa404error' 2>/dev/null | grep -i '^date:' | sed 's/^[Dd]ate: //g' | tr -d ,)"
|
Loading…
Reference in New Issue
Block a user