Skip to content

Commit

Permalink
chore: lint restart script
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-rehor committed Jan 22, 2025
1 parent 2833e7c commit 5e7b30d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions scripts/influxdb3-restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ INFLUXDB_V3_IMAGE=${DOCKER_REPOSITORY}/influxdb3-core:${INFLUXDB_V3_VERSION}
CONTAINER_NAME="${INFLUX_CONTAINER_NAME:-influxdb_v3}"
NETWORK_NAME=influxdb3_network

SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
SCRIPT_PATH="$( cd "$(dirname "$0")" || exit ; pwd -P )"
PROJECT_PATH="$(dirname "${SCRIPT_PATH}")"
DATA_DIR="${INFLUXDB3_DATA_DIR:-${PROJECT_PATH}/temp/data}"
HOST_NAME=$(uname -n)
Expand All @@ -31,12 +31,12 @@ make_data_dir(){
}

restart() {
echo using image ${INFLUXDB_V3_IMAGE}
echo using image "${INFLUXDB_V3_IMAGE}"
if [ ! -f "${SCRIPT_PATH}"/influxdb3_current.token ]
then
generate_tokens
fi
source "${SCRIPT_PATH}"/influxdb3_current.token
source "${SCRIPT_PATH}/influxdb3_current.token"
echo Token for accessing the api: "${INFLUXDB_TOKEN}"
make_data_dir

Expand All @@ -50,7 +50,7 @@ restart() {
#
docker pull "${INFLUXDB_V3_IMAGE}" || true

echo running ${INFLUXDB_V3_IMAGE} as ${CONTAINER_NAME}
echo running "${INFLUXDB_V3_IMAGE}" as "${CONTAINER_NAME}"

docker run \
--detach \
Expand Down
2 changes: 0 additions & 2 deletions scripts/influxdb3_current.token

This file was deleted.

0 comments on commit 5e7b30d

Please sign in to comment.