4 PACKAGE_NAME="agl-${XDSSERVER}"
6 #test if sudoers with NOPASSWD
7 sudo -l | grep NOPASSWD &> /dev/null
8 if [ ! $? -eq 0 ]; then
12 function getUpdateDebian() {
13 local policy="/tmp/policy"
14 sudo apt-get update &> /dev/null
15 apt-cache policy ${PACKAGE_NAME} > ${policy}
16 cat $policy | grep "Installed"
17 cat $policy | grep "Candidate"
21 if [ -f /etc/os-release ]; then
22 source /etc/os-release