Changed README & install.sh

This commit is contained in:
Alexey 2018-10-10 21:48:48 +03:00
parent 9fd380a547
commit f71c62d730
4 changed files with 19 additions and 5 deletions

Binary file not shown.

View file

@ -55,7 +55,13 @@ $ cp geostat.service.template geostat.service
$ vi geostat.service
$ cp geostat.service /lib/systemd/system/
```
3) Then enable and start service
4) Download latest GeoLiteCity.dat from MaxMind
```sh
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
$ gunzip GeoLiteCity.dat.gz
$ rm GeoLiteCity.dat.gz
```
5) Then enable and start service
```sh
$ systemctl enable geostat.service
$ systemctl start geostat.service

View file

@ -76,4 +76,4 @@ if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
os.system('clear')
sys.exit(0)

View file

@ -4,6 +4,14 @@
## Installetion script for GeoStat
## Alexey Nizhegolenko 2018
##
echo ""
echo "Downloading latest GeoLiteCity.dat from MaxMind"
sleep 1
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip GeoLiteCity.dat.gz
rm GeoLiteCity.dat.gz
echo ""
echo "Creating virtual ENV and installing requirements..."
sleep 1