Update dsmon.sh

This commit is contained in:
2023-07-04 19:49:27 -05:00
parent 053212c83a
commit 21628c6a9f

View File

@@ -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]}"