Update environment.sh

This commit is contained in:
FusionPBX 2017-03-04 15:20:28 -07:00 committed by GitHub
parent 08ebc280b1
commit 1a46778623
1 changed files with 13 additions and 14 deletions

View File

@ -42,19 +42,17 @@ elif [ .$cpu_name = .'x86_64' ]; then
cpu_architecture='x86' cpu_architecture='x86'
fi fi
if [ .$cpu_architecture = .'arm' ]; then if [ .$cpu_architecture = .'arm' ]; then
if [ .$os_mode = .'32' ]; then if [ .$os_mode = .'32' ]; then
#export USE_SWITCH_PACKAGE_UNOFFICIAL_ARM=true verbose "Correct CPU and Operating System detected, using the ARM repo"
verbose "Correct CPU/OS detected, using unofficial arm repo"
elif [ .$os_mode = .'64' ]; then elif [ .$os_mode = .'64' ]; then
error "You are using a 64bit arm OS this is unsupported" error "You are using a 64bit arm OS this is unsupported"
warning " please rerun with --use-switch-source" switch_source=true
exit 3 switch_package=false
else else
error "Unknown OS_bits $OS_bits this is unsupported" error "Unknown OS mode $os_mode this is unsupported"
warning " please rerun with --use-switch-source" switch_source=true
exit 3 switch_package=false
fi fi
elif [ .$cpu_architecture = .'x86' ]; then elif [ .$cpu_architecture = .'x86' ]; then
if [ .$os_mode = .'32' ]; then if [ .$os_mode = .'32' ]; then
@ -62,15 +60,16 @@ elif [ .$cpu_architecture = .'x86' ]; then
if [ .$cpu_mode = .'64' ]; then if [ .$cpu_mode = .'64' ]; then
warning " Your CPU is 64bit you should consider reinstalling with a 64bit OS" warning " Your CPU is 64bit you should consider reinstalling with a 64bit OS"
fi fi
warning " please rerun with --use-switch-source" switch_source=true
exit 3 switch_package=false
elif [ .$os_mode = .'64' ]; then elif [ .$os_mode = .'64' ]; then
verbose "Correct CPU/OS detected" verbose "Correct CPU and Operating System detected"
else else
error "Unknown OS_bits $OS_bits this is unsupported" error "Unknown Operating System mode $os_mode is unsupported"
warning " please rerun with --use-switch-source" switch_source=true
exit 3 switch_package=false
fi fi
else else
error "You are using a unsupported architecture $cpu_architecture" error "You are using a unsupported architecture $cpu_architecture"
exit 3
fi fi