32 lines
716 B
YAML
32 lines
716 B
YAML
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
command:
|
|
check-influxdb-version:
|
|
exec:
|
|
- {{ if regexMatch "^2.+" .Env.APP_VERSION }}influxd{{ else }}influxdb3{{ end }}
|
|
- {{ if regexMatch "^2.+" .Env.APP_VERSION }}version{{ else }}--version{{ end }}
|
|
exit-status: 0
|
|
stdout:
|
|
- "{{ .Env.APP_VERSION }}"
|
|
{{ if regexMatch "^2.+" .Env.APP_VERSION }}
|
|
check-influx-binary:
|
|
exec: which influx
|
|
exit-status: 0
|
|
file:
|
|
/.influx_history:
|
|
exists: true
|
|
mode: "0664"
|
|
filetype: file
|
|
/opt/bitnami/influxdb/etc:
|
|
exists: true
|
|
mode: "0775"
|
|
filetype: directory
|
|
{{ end }}
|
|
group:
|
|
daemon:
|
|
exists: true
|
|
user:
|
|
daemon:
|
|
exists: true
|