mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Improved output for implementers
This commit is contained in:
parent
f169946549
commit
29225fc590
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ else
|
||||||
fi
|
fi
|
||||||
#if [[ `grep -qi ansible /etc/apt/sources.list` ]] || [ -f /etc/apt/sources.list.d/ansible*.list ]; then
|
#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
|
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
|
else
|
||||||
echo "Upstream ansible source repo not found, please uninstall ansible and re-run this script"
|
echo "Upstream ansible source repo not found, please uninstall ansible and re-run this script"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -73,7 +73,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/olpc-release ]; then
|
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 update
|
||||||
apt -y install ansible
|
apt -y install ansible
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue