Skip to content

Commit

Permalink
fix: setup and db create for influx (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALameLlama authored Jan 12, 2024
1 parent 0e034c2 commit 59d7ad8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create-influxdb.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

influx -execute "create database $1"
influx bucket create --token="homestead_secret" --name="$1" --org="homestead"
11 changes: 11 additions & 0 deletions scripts/features/influxdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,16 @@ echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https
apt-get update
apt-get install -y influxdb2

systemctl enable --now influxdb

influx setup \
--force \
--username "homestead" \
--password "secretkey" \
--org "homestead" \
--bucket "homestead" \
--name "homestead" \
--token "homestead_secret"

touch /home/$WSL_USER_NAME/.homestead-features/influxdb
chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features

0 comments on commit 59d7ad8

Please sign in to comment.