Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -304,7 +304,7 @@ GETCRONTABS(){
|
|||||||
for hostid in "${!host_ip[@]}"; do
|
for hostid in "${!host_ip[@]}"; do
|
||||||
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
||||||
if [ "${checkhost}" != "false" ]; then
|
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
|
ssh -tq root@${host_ip[$hostid]} apt install -yq sshpass > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs${idsCL[Default]}${idsST[Reset]}"
|
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs${idsCL[Default]}${idsST[Reset]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user