1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Improved output for implementers

This commit is contained in:
A Holt 2017-12-11 21:21:39 -05:00 committed by GitHub
parent f169946549
commit 29225fc590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ else
fi
#if [[ `grep -qi ansible /etc/apt/sources.list` ]] || [ -f /etc/apt/sources.list.d/ansible*.list ]; then
if [[ `grep -i ansible /etc/apt/sources.list` ]] || ls /etc/apt/sources.list.d/ansible*.list >/dev/null 2>&1 ; then
echo "Ansible repo(s) found"
echo "Ansible repo(s) found within /etc/apt/sources.list*"
else
echo "Upstream ansible source repo not found, please uninstall ansible and re-run this script"
exit 1
@ -73,7 +73,7 @@ else
fi
if [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/olpc-release ]; then
echo "Using apt to check for & install ansible updates"
echo "Using apt to check for updates, then install/upgrade ansible"
apt update
apt -y install ansible
fi