From 21628c6a9f2b61ba4292af4b4ee0c9386f161a43 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 4 Jul 2023 19:49:27 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index 31c3616..3d210f8 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -304,7 +304,7 @@ GETCRONTABS(){ for hostid in "${!host_ip[@]}"; do checkhost=$(CHECK_HOST ${host_ip[$hostid]}) if [ "${checkhost}" != "false" ]; then - if ! root@${host_ip[$hostid]} command -v sshpass > /dev/null; then + if ! ssh -tq root@${host_ip[$hostid]} command -v sshpass > /dev/null; then ssh -tq root@${host_ip[$hostid]} apt install -yq sshpass > /dev/null 2>&1 fi echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs${idsCL[Default]}${idsST[Reset]}"