force override of .prom file
This commit is contained in:
parent
bd3141fcd7
commit
5cb3932f01
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ PROM_DIR=/var/prometheus-node-exporter
|
|||
|
||||
mkdir $PROM_DIR/
|
||||
|
||||
apt install prometheus-node-exporter
|
||||
apt install prometheus-node-exporter
|
||||
|
||||
chown prometheus:prometheus $PROM_DIR
|
||||
|
||||
|
|
|
|||
|
|
@ -62,5 +62,5 @@ allowed_characters='^[a-z_]+$'
|
|||
test -z "$RDL_PROM_LINES" || echo "$RDL_PROM_LINES"
|
||||
} > /tmp/"$NAME".prom.$$
|
||||
|
||||
mv /tmp/"$NAME".prom.$$ "$PROM_DIR"/"$NAME".prom
|
||||
mv --force /tmp/"$NAME".prom.$$ "$PROM_DIR"/"$NAME".prom
|
||||
chown prometheus:prometheus "$PROM_DIR"/"$NAME".prom
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue