Skip to content

Commit

Permalink
Bugfix: sh (dash) dose not support &> /dev/null. (eclipse-zenoh#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
evshary authored Nov 6, 2023
1 parent 4b34f76 commit b2959f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenohd/.deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2959f0

Please sign in to comment.