chore: Fix touch command (#13372)

This commit is contained in:
Joshua Powers 2023-06-01 02:34:55 -06:00 committed by GitHub
parent 7427ea33c7
commit f11ad8a4a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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"
}

View 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"
}