Added Branch support (#44)

moved command line argument processing to a separate script so it can be
shared
added --use-system-master to allow user to use master branch instead of
detected master
This commit is contained in:
Mafoo
2016-09-29 17:57:50 +01:00
committed by FusionPBX
parent 0ba5e906b2
commit eda28f4efd
4 changed files with 70 additions and 42 deletions

View File

@@ -1,6 +1,9 @@
#!/bin/sh
#initialize variable encase we are called directly
[ -z $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM ] && USE_SWITCH_PACKAGE_UNOFFICIAL_ARM=false
#move to script directory so all relative paths work
cd "$(dirname "$0")"
. ./arguments.sh
apt-get update && apt-get install -y --force-yes curl memcached haveged
arch=$(uname -m)