BugFix-Resource sourcing (#46)

changes of directory using relative paths is back firing
This commit is contained in:
Mafoo 2016-09-30 23:59:58 +01:00 committed by FusionPBX
parent eda28f4efd
commit 02057e68dc
4 changed files with 5 additions and 4 deletions

3
debian/install.sh vendored
View File

@ -3,7 +3,8 @@
#move to script directory so all relative paths work
cd "$(dirname "$0")"
. resources/arguments.sh
. ./resources/colors.sh
. ./resources/arguments.sh
if [ $CPU_CHECK = true ] && [ $USE_SWITCH_SOURCE = false ]; then
#check what the CPU and OS are

View File

@ -1,7 +1,5 @@
#!/bin/sh
. ./colors.sh
#Process command line options only if we haven't been processed once
if [ -z "$CPU_CHECK" ]; then
export script_name=`basename "$0"`

View File

@ -3,6 +3,7 @@
#move to script directory so all relative paths work
cd "$(dirname "$0")"
. ./colors.sh
. ./arguments.sh
#send a message

View File

@ -3,7 +3,8 @@
#move to script directory so all relative paths work
cd "$(dirname "$0")"
. ./arguments.sh
. ../colors.sh
. ../arguments.sh
apt-get update && apt-get install -y --force-yes curl memcached haveged
arch=$(uname -m)