mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
simplify ubuntu-20 test
This commit is contained in:
parent
12020f891e
commit
18d90787f1
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ elif [ -f /etc/centos-release ]; then
|
|||
#elif [ -f /etc/debian_version ] || (grep -qi raspbian /etc/*elease) ; then
|
||||
#elif [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/olpc-release ]; then
|
||||
elif [ -f /etc/debian_version ]; then # Includes Debian, Ubuntu & Raspbian
|
||||
IS_U20=`cat /etc/os-release | grep UBUNTU_CODENAME= | awk -F "=" '{print $2}'`
|
||||
if [ "$IS_20" != "focal" ]; then
|
||||
if ! grep -q focal /etc/os-release; then
|
||||
echo -e "\napt update; install dirmngr; PPA to /etc/apt/sources.list.d/iiab-ansible.list\n"
|
||||
apt update
|
||||
apt -y install dirmngr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue