Add myip script

This commit is contained in:
Rob Watson 2021-04-03 11:08:41 +02:00
parent 2359b5dd67
commit ab4517bea9
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,7 @@ pacman -S --needed --noconfirm base-devel \
docker \ docker \
docker-compose \ docker-compose \
wireguard-tools \ wireguard-tools \
whois \
ttf-ubuntu-font-family # ubuntu mono font for alacritty ttf-ubuntu-font-family # ubuntu mono font for alacritty
sudo -u $SUDO_USER ./script/installpackagesnonroot sudo -u $SUDO_USER ./script/installpackagesnonroot

6
script/myip Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
#
# Print public IP address
set -e
curl -s 'https://api.ipify.org?format=text'