Auto updates GeoIP database on Big IP.
Thanks for this! In my testing I ran into 2 issues getting this setup on xUbuntu 16.04. When running this command
sudo apt-get -y install php7.0 php7.0-common php7.0-cli php7.0-curl php7.0-mcrypt php7.0-ssh2
I received these errors:
E: Unable to locate package php7.0-ssh
E: Couldn't find any package by glob 'php7.0-ssh
E: Couldn't find any package by regex 'php7.0-ssh
That happened after adding the repository. Running the command
sudo apt-get -y install php-ssh2
seemed to fix that.
The 2nd error I ran into was after the 1st time I ran the sript, I received this error:
Fatal error: Uncaught Error: "Class 'ZipArchive' not found in /home/xxxx/geoip_updater.php:112
Stack trace:
0 {main}
thrown in /home/xxxx/geoip_updater.php on line 112
I was able to resolve this by running this command
sudo apt-get install php-zip
The security conscious side of me doesn't particularly like having the root password stored in the script. If that could be made a variable that needs to be entered at the very beginning, that would be better in my own opinion.
The other thing I would suggest, is to see if the files you are about to download are already downloaded. Because of the ziparchive error I received, I ended up downloading the files a 2nd time even though they were already there. As I am typing, it just occurs to me that me that being able to specify a local file might also be nice.
Oh, and the GTM I was testing against was 11.5.3.