Use mktemp for creating tempfile
This commit is contained in:
parent
89fc555eb1
commit
012c77f2ed
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ set -eu
|
|||
|
||||
TEXTFILE_COLLECTOR_DIR=/var/lib/prometheus/node-exporter
|
||||
PROM_FILE=$TEXTFILE_COLLECTOR_DIR/backup.prom
|
||||
TMP_FILE=$PROM_FILE.$$
|
||||
TMP_FILE=$(mktemp)
|
||||
NOW=$(date +%s)
|
||||
BORG_INFO=$(borgmatic --no-color info --last 1 --json)
|
||||
|
||||
|
|
Loading…
Reference in a new issue