From b2959f0f1278ef71b92654338d7796a99ce59722 Mon Sep 17 00:00:00 2001 From: ChenYing Kuo Date: Mon, 6 Nov 2023 17:41:14 +0800 Subject: [PATCH] Bugfix: sh (dash) dose not support `&> /dev/null`. (#576) --- zenohd/.deb/postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zenohd/.deb/postinst b/zenohd/.deb/postinst index 62313e0b2f..cd72383680 100644 --- a/zenohd/.deb/postinst +++ b/zenohd/.deb/postinst @@ -20,12 +20,12 @@ set -e case "$1" in configure) - if ! command -v systemctl &> /dev/null + if ! command -v systemctl > /dev/null 2>&1 then echo "WARNING: 'systemctl' not found - cannot install zenohd as a service." exit 0 fi - id -u zenohd &> /dev/null || useradd -r -s /bin/false zenohd + id -u zenohd > /dev/null 2>&1 || useradd -r -s /bin/false zenohd mkdir -p /var/zenohd chown zenohd:zenohd /var/zenohd systemctl daemon-reload