chore: Fix touch command (#13372)
This commit is contained in:
parent
7427ea33c7
commit
f11ad8a4a0
|
|
@ -60,7 +60,7 @@ test -d "$STATE_DIR" || {
|
|||
|
||||
STATE_FILE="$STATE_DIR/statefile"
|
||||
test -f "$STATE_FILE" || {
|
||||
touch -h "$STATE_FILE"
|
||||
touch "$STATE_FILE"
|
||||
chown root:telegraf "$STATE_FILE"
|
||||
chmod 660 "$STATE_FILE"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ test -d "$STATE_DIR" || {
|
|||
|
||||
STATE_FILE="$STATE_DIR/statefile"
|
||||
test -f "$STATE_FILE" || {
|
||||
touch -h "$STATE_FILE"
|
||||
touch "$STATE_FILE"
|
||||
chown root:telegraf "$STATE_FILE"
|
||||
chmod 660 "$STATE_FILE"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue