diff --git a/install.sh b/install.sh index 5f9ed01..826c05e 100755 --- a/install.sh +++ b/install.sh @@ -1,26 +1,32 @@ #! /usr/bin/env bash ## -## Installetion for GeoStat script +## Installetion script for GeoStat +## Alexey Nizhegolenko 2018 ## echo "Creating virtual ENV and installing requirements..." - virtualenv venv && source venv/bin/activate +sleep 1 -pip install -r requirements.txt +pip install -r requirements.txt && deactivate +sleep 1 +echo "Please edit settings.ini file and set right parameters..." cp settings.ini.back settings.ini "${VISUAL:-"${EDITOR:-vi}"}" "settings.ini" + +echo "Installing SystemD service..." while read line do eval echo "$line" done < "./geostat.service.template" > /lib/systemd/system/geostat.service systemctl enable geostat.service +sleep 1 echo "All done, now you can start getting GEO data from your log" -echo "run 'systemd start geostat.service' " -echo "Good Luck" +echo "run 'systemd start geostat.service' for this" +echo "Good Luck !"