mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
commit
cb10d2fdf7
4 changed files with 8 additions and 6 deletions
10
iiab-install
10
iiab-install
|
@ -10,7 +10,7 @@ CWD=`pwd`
|
||||||
OS=`grep ^ID= /etc/*release|cut -d= -f2`
|
OS=`grep ^ID= /etc/*release|cut -d= -f2`
|
||||||
OS=${OS//\"/}
|
OS=${OS//\"/}
|
||||||
MIN_RPI_KERN=4.9.59-v7+
|
MIN_RPI_KERN=4.9.59-v7+
|
||||||
MIN_ANSIBLE_VER=2.4.1.0
|
MIN_ANSIBLE_VER=2.5.6
|
||||||
|
|
||||||
export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
|
export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
|
||||||
|
|
||||||
|
@ -68,9 +68,11 @@ if [[ `command -v ansible` ]]; then # "command -v" is POSIX compliant; it
|
||||||
fi
|
fi
|
||||||
if version_gt $MIN_ANSIBLE_VER $CURR_ANSIBLE_VER ; then
|
if version_gt $MIN_ANSIBLE_VER $CURR_ANSIBLE_VER ; then
|
||||||
echo -e "\nEXITING: Ansible "$MIN_ANSIBLE_VER" or higher required."
|
echo -e "\nEXITING: Ansible "$MIN_ANSIBLE_VER" or higher required."
|
||||||
echo "PLEASE RUN './scripts/ansible' to install the latest Ansible from PPA or RPM."
|
echo
|
||||||
echo "'ansible --version' and 'apt -a list ansible' can also be useful here. Try"
|
echo "REMOVE PRIOR VERSIONS using 'apt purge ansible' and/or 'pip uninstall ansible'."
|
||||||
echo "to remove prior versions with 'apt purge ansible' or 'pip uninstall ansible'."
|
echo "THEN RUN 'scripts/ansible' to install the latest Ansible from PPA or RPM."
|
||||||
|
echo "'ansible --version' and 'apt -a list ansible' can also be very useful."
|
||||||
|
echo
|
||||||
echo "IIAB INSTALL INSTRUCTIONS: https://github.com/iiab/iiab/wiki/IIAB-Installation"
|
echo "IIAB INSTALL INSTRUCTIONS: https://github.com/iiab/iiab/wiki/IIAB-Installation"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -9,7 +9,7 @@ echo -e 'COMPLETE INSTALL INSTRUCTIONS:\nhttps://github.com/iiab/iiab/wiki/IIAB-
|
||||||
echo -e 'NOW ATTEMPTING TO INSTALL THE LATEST ANSIBLE:'
|
echo -e 'NOW ATTEMPTING TO INSTALL THE LATEST ANSIBLE:'
|
||||||
echo -e 'Ensure you'"'"'re online before running this (/opt/iiab/iiab/scripts/ansible)\n'
|
echo -e 'Ensure you'"'"'re online before running this (/opt/iiab/iiab/scripts/ansible)\n'
|
||||||
|
|
||||||
echo -e 'ALTERNATIVES: Run scripts/ansible-2.5.x or scripts/ansible-2.6.x "slow food".\n\n'
|
echo -e 'ALTERNATIVES: Run scripts/ansible-2.5.x-deprecated or scripts/ansible-2.6.x\n\n'
|
||||||
|
|
||||||
|
|
||||||
GOOD_VER="2.6.1" # Ansible version for OLPC XO laptops (pip install).
|
GOOD_VER="2.6.1" # Ansible version for OLPC XO laptops (pip install).
|
||||||
|
|
|
@ -9,7 +9,7 @@ echo -e 'COMPLETE INSTALL INSTRUCTIONS:\nhttps://github.com/iiab/iiab/wiki/IIAB-
|
||||||
echo -e 'NOW ATTEMPTING TO INSTALL THE LATEST ANSIBLE 2.6.x:'
|
echo -e 'NOW ATTEMPTING TO INSTALL THE LATEST ANSIBLE 2.6.x:'
|
||||||
echo -e 'Ensure you'"'"'re online before running this (/opt/iiab/iiab/scripts/ansible-2.6.x)\n'
|
echo -e 'Ensure you'"'"'re online before running this (/opt/iiab/iiab/scripts/ansible-2.6.x)\n'
|
||||||
|
|
||||||
echo -e 'ALTERNATIVES: Run scripts/ansible-2.5.x, or scripts/ansible for the latest.\n\n'
|
echo -e 'ALTERNATIVES: Run scripts/ansible-2.5.x-deprecated "slow food", or scripts/ansible for the latest.\n\n'
|
||||||
|
|
||||||
|
|
||||||
GOOD_VER="2.6.1" # Ansible version for OLPC XO laptops (pip install).
|
GOOD_VER="2.6.1" # Ansible version for OLPC XO laptops (pip install).
|
||||||
|
|
Loading…
Reference in a new issue