From f11ad8a4a06fb9e03f17c808aaf6845f222e1bac Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Thu, 1 Jun 2023 02:34:55 -0600 Subject: [PATCH] chore: Fix touch command (#13372) --- scripts/deb/post-install.sh | 2 +- scripts/rpm/post-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deb/post-install.sh b/scripts/deb/post-install.sh index 32e5974e1..8d53996e5 100644 --- a/scripts/deb/post-install.sh +++ b/scripts/deb/post-install.sh @@ -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" } diff --git a/scripts/rpm/post-install.sh b/scripts/rpm/post-install.sh index 30b1a9357..a093d57d3 100644 --- a/scripts/rpm/post-install.sh +++ b/scripts/rpm/post-install.sh @@ -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" }