Update 'install-unifi-poller'

This commit is contained in:
2020-04-25 22:47:22 -05:00
parent adcb0f28eb
commit 251d3915ae

View File

@@ -17,9 +17,9 @@ sudo apt -y update
sudo apt install -y influxdb
sudo systemctl start influxdb
influx -host localhost -port 8086 CREATE DATABASE unifi
influx -host localhost -port 8086 CREATE USER unifipoller WITH PASSWORD 'unifipoller' WITH ALL PRIVILEGES
influx -host localhost -port 8086 GRANT ALL ON unifi TO unifipoller
influx -host localhost -port 8086 -execute "CREATE DATABASE unifi"
influx -host localhost -port 8086 -execute "CREATE USER unifipoller WITH PASSWORD 'unifipoller' WITH ALL PRIVILEGES"
influx -host localhost -port 8086 -execute "GRANT ALL ON unifi TO unifipoller"
curl -s https://golift.io/gpgkey | sudo apt-key add -
sudo echo deb https://dl.bintray.com/golift/ubuntu bionic main | sudo tee /etc/apt/sources.list.d/unifi-pollers.list