forked from norman/fusionpbx-install.sh-github-mirror
Enhance-Add OS-CPU bit checking (#17)
encourage users to submit the output of lsb_release as an issue when that test fails, this should allow contributors not in irc at the time of the problem to see the information Add CPU and OS bit checking which can be disabled with --no-cpu-check
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Exit codes
|
||||
# 1 general error
|
||||
# 2 unsupported OS
|
||||
# 3 unsupported CPU/OS bits
|
||||
|
||||
# check to confirm running as root.
|
||||
if [ "$(id -u)" -ne "0" ]; then
|
||||
echo "$(basename "$0") must be run as root";
|
||||
@@ -9,7 +14,6 @@ echo
|
||||
#Os/Distro Check
|
||||
os_check=$(lsb_release -is)
|
||||
check_major_release=$(lsb_release -rs | cut -d. -f1)
|
||||
lsb_release -c | grep -i jessie > /dev/null
|
||||
|
||||
os_unsupported () {
|
||||
echo " Your Operating System appears to be: "
|
||||
|
||||
Reference in New Issue
Block a user