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