Cheat Sheets

Updates - Distro Release

Description

Checks if distribution is still ok

Check Script: updates-release.sh

#!/bin/bash

vendor=$(lsb_release -si) release=$(lsb_release -sr) release=${release/\.*/}

case $vendor in Debian) if [ "${release-0}" -lt 7 ]; then result_warning "$vendor $release needs to be updated" fi ;; esac
Comment on Disqus