scripts: fix GLUON_SITE_CONFIG

check_site.sh and site.sh were setting GLUON_SITE_CONFIG on their own
even though the environment variable was already exported.
This commit is contained in:
Nils Schneider 2014-07-29 10:05:10 +02:00
parent f71413b6bd
commit 3a8af0ce38
2 changed files with 0 additions and 5 deletions

View File

@ -1,7 +1,5 @@
#!/bin/sh
export GLUON_SITE_CONFIG="$GLUONDIR/site/site.conf"
SITE_CONFIG_LUA=packages/gluon/gluon/gluon-core/files/usr/lib/lua/gluon/site_config.lua
CHECK_SITE_LIB=scripts/check_site_lib.lua

View File

@ -1,8 +1,5 @@
#!/bin/sh
export GLUONDIR="$(dirname "$0")/.."
export GLUON_SITE_CONFIG="$GLUONDIR/site/site.conf"
SITE_CONFIG_LUA=packages/gluon/gluon/gluon-core/files/usr/lib/lua/gluon/site_config.lua
"$GLUONDIR"/openwrt/staging_dir/host/bin/lua -e "print(assert(dofile(os.getenv('GLUONDIR') .. '/${SITE_CONFIG_LUA}').$1))" 2>/dev/null