Skip to content

Instantly share code, notes, and snippets.

@Yasamato
Created August 10, 2018 12:33
Show Gist options
  • Select an option

  • Save Yasamato/7287377bcfdbb30e46ca0fc68ec9d411 to your computer and use it in GitHub Desktop.

Select an option

Save Yasamato/7287377bcfdbb30e46ca0fc68ec9d411 to your computer and use it in GitHub Desktop.
Retrieves current public ip address and saves it.
#!/bin/sh
wget -q --output-document=/var/www/current.ip ipinfo.io/ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment