Skip to content
Snippets Groups Projects
Commit 3a8af0ce authored by Nils Schneider's avatar Nils Schneider
Browse files

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.
parent f71413b6
No related branches found
No related tags found
No related merge requests found
#!/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
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment