Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
added installer check to zimbra-health
Browse files Browse the repository at this point in the history
  • Loading branch information
LobbyLobster committed Apr 8, 2024
1 parent e69f5ac commit 617564a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions monomail/monomail-zimbra-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,20 @@ function queued_messages() {
fi
}

function check_install() {
mapfile -t ps_out < <(ps aux | grep install.sh)
if [ ${#ps_out[@]} -gt 1 ]; then
echo install.sh is working
echo Exiting...
exit 1
fi
}

function main() {
printf '\n'
echo "Monomail Zimbra Health $VERSION - $(date)"
printf '\n'
check_install
check_ip_access
printf '\n'
check_zimbra_services
Expand Down

0 comments on commit 617564a

Please sign in to comment.