change some things in install.sh
This commit is contained in:
parent
ea19615599
commit
cd83de6696
1 changed files with 11 additions and 5 deletions
16
install.sh
16
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 !"
|
||||
|
|
Loading…
Reference in a new issue