Update install.sh
Change some of the wording and function names.
This commit is contained in:
parent
2b519b75e0
commit
c40601a30a
30
install.sh
30
install.sh
|
|
@ -7,24 +7,24 @@ fi
|
||||||
echo
|
echo
|
||||||
|
|
||||||
#Os/Distro Check
|
#Os/Distro Check
|
||||||
check_OS=$(lsb_release -is)
|
os_check=$(lsb_release -is)
|
||||||
check_Release_Major=$(lsb_release -rs | cut -d. -f1)
|
check_major_release=$(lsb_release -rs | cut -d. -f1)
|
||||||
lsb_release -c | grep -i jessie > /dev/null
|
lsb_release -c | grep -i jessie > /dev/null
|
||||||
|
|
||||||
unsupported_OS () {
|
os_unsupported () {
|
||||||
echo " Your OS appears to be: "
|
echo " Your Operating System appears to be: "
|
||||||
lsb_release -a
|
lsb_release -a
|
||||||
echo " Your OS is not currently supported... Exiting the install."
|
echo "Your Operating System is not currently supported... Exiting the install."
|
||||||
exit 2;
|
exit 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $check_OS = 'Debian' ]; then
|
if [ $os_check = 'Debian' ]; then
|
||||||
if [ $check_Release_Major -ge 8 ]; then
|
if [ $check_major_release -ge 8 ]; then
|
||||||
echo "Removing the cd img from /etc/apt/sources.list"
|
echo "Removing the CD image from /etc/apt/sources.list"
|
||||||
sed -i '/cdrom:/d' /etc/apt/sources.list
|
sed -i '/cdrom:/d' /etc/apt/sources.list
|
||||||
echo "Updating system before we start"
|
echo "Updating system before starting."
|
||||||
apt-get update && apt-get -y upgrade
|
apt-get update && apt-get -y upgrade
|
||||||
echo "Installing git"
|
echo "Installing Git"
|
||||||
apt-get install -y git
|
apt-get install -y git
|
||||||
cd /usr/src
|
cd /usr/src
|
||||||
echo "Fetching Installer"
|
echo "Fetching Installer"
|
||||||
|
|
@ -37,9 +37,9 @@ if [ $check_OS = 'Debian' ]; then
|
||||||
./install.sh $@
|
./install.sh $@
|
||||||
else
|
else
|
||||||
echo "Although you are running Debian we require version >= 8"
|
echo "Although you are running Debian we require version >= 8"
|
||||||
unsupported_OS
|
os_unsupported
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
unsupported_OS
|
os_unsupported
|
||||||
fi
|
fi
|
||||||
echo "If you require assistance we are available via IRC on freenode via #fusionpbx"
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue