Skip to content

Commit

Permalink
adds condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Carvalho committed Sep 30, 2024
1 parent 2020e1e commit 4826d6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ disable_unsupported_services() {
if [[ $(systemctl is-enabled "${wire}") == "enabled" ]]; then
echo "Disabling ${wire}..."
systemctl disable "${wire}"
/etc/cyral/bin/cyral-discovery unregister "${wire}"
if command /etc/cyral/bin/cyral-discovery; then
/etc/cyral/bin/cyral-discovery unregister "${wire}"
fi
else
echo "already disabled $wire"
fi
Expand Down

0 comments on commit 4826d6a

Please sign in to comment.