Skip to content

Instantly share code, notes, and snippets.

@ranisalt
Created April 21, 2015 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranisalt/b4da25a33f94843601be to your computer and use it in GitHub Desktop.
Save ranisalt/b4da25a33f94843601be to your computer and use it in GitHub Desktop.
Auto update IP
#!/usr/bin/env sh
sed -i "s/^\(ip\s*=\s*\)\".*\"/\1\"$(curl -s icanhazip.com)\"/" config.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment