Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
avoid calling systemctl if not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWeindel committed Jan 10, 2018
1 parent fcab3c9 commit cb7ab01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/post
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ if [ ! -d /etc/kudu/conf ]; then
fi
fi

systemctl daemon-reload
# ensure services are visible in systemd
which systemctl &> /dev/null
if [ $? -eq 0 ]; then
systemctl daemon-reload
fi

0 comments on commit cb7ab01

Please sign in to comment.