mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
generate LOUDER warning if /etc/apt/sources.list* already exist(s) (for folk wanting to revert from 2.5.x to 2.4.x)
This commit is contained in:
parent
82a24a1ccb
commit
42b13eb513
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ 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
|
||||||
elif (grep -qi ansible /etc/apt/sources.list) || (ls /etc/apt/sources.list.d/ansible*.list >/dev/null 2>&1) ; then
|
elif (grep -qi ansible /etc/apt/sources.list) || (ls /etc/apt/sources.list.d/ansible*.list >/dev/null 2>&1) ; then
|
||||||
echo "Ansible repo(s) found within /etc/apt/sources.list*"
|
#echo "Ansible repo(s) found within /etc/apt/sources.list*"
|
||||||
|
echo -e '\nANSIBLE REPO(S) FOUND WITHIN /etc/apt/sources.list AND/OR /etc/apt/sources.list.d/ansible*.list -- YOU LIKELY WANT LINE "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" -- AND REMOVE ALL SIMILAR LINES, IF YOU WANT TO LOCK IN/PIN TO ANSIBLE 2.4.x\n'
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue