Add setdatefromhttp.sh

Sets system time to server time using an http 404 error
This commit is contained in:
iAmInAction authored and GitHub committed 2024-03-10 19:30:47 +01:00
1 parent 2694664aee
commit a33f898b79
1 file changed
+2
+2
View 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 ,)"