„runupdate“ ändern
This commit is contained in:
parent
b18804513f
commit
45bce45f0d
@ -21,7 +21,7 @@ update_server () {
|
|||||||
ssh $user@$1 "sudo apt-get update > /dev/null && sudo apt-get upgrade -y" > /dev/null 2>&1
|
ssh $user@$1 "sudo apt-get update > /dev/null && sudo apt-get upgrade -y" > /dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Update successful on $1"
|
echo "Update successful on $1"
|
||||||
else
|
elif [ -n "$updates" ]; then
|
||||||
echo "Update failed on $1"
|
echo "Update failed on $1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user