Skip to content

Commit 36c5652

Browse files
authored
fix: delete engine files only but not the path itself (#549)
1 parent 72b1f3a commit 36c5652

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

influxdb/2.0/alpine/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function ensure_init_vars_set () {
102102
# the DB is already full set up.
103103
function cleanup_influxd () {
104104
log warn "cleaning bolt and engine files to prevent conflicts on retry" bolt_path "${BOLT_PATH}" engine_path "${ENGINE_PATH}"
105-
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}"
105+
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}/"*
106106
}
107107

108108
# Upgrade V1 data into the V2 format using influxd upgrade.

influxdb/2.0/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function ensure_init_vars_set () {
102102
# the DB is already full set up.
103103
function cleanup_influxd () {
104104
log warn "cleaning bolt and engine files to prevent conflicts on retry" bolt_path "${BOLT_PATH}" engine_path "${ENGINE_PATH}"
105-
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}"
105+
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}/"*
106106
}
107107

108108
# Upgrade V1 data into the V2 format using influxd upgrade.

influxdb/2.1/alpine/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function ensure_init_vars_set () {
102102
# the DB is already full set up.
103103
function cleanup_influxd () {
104104
log warn "cleaning bolt and engine files to prevent conflicts on retry" bolt_path "${BOLT_PATH}" engine_path "${ENGINE_PATH}"
105-
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}"
105+
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}/"*
106106
}
107107

108108
# Upgrade V1 data into the V2 format using influxd upgrade.

influxdb/2.1/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function ensure_init_vars_set () {
102102
# the DB is already full set up.
103103
function cleanup_influxd () {
104104
log warn "cleaning bolt and engine files to prevent conflicts on retry" bolt_path "${BOLT_PATH}" engine_path "${ENGINE_PATH}"
105-
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}"
105+
rm -rf "${BOLT_PATH}" "${ENGINE_PATH}/"*
106106
}
107107

108108
# Upgrade V1 data into the V2 format using influxd upgrade.

0 commit comments

Comments
 (0)