TT#43700 Set new NGCPCFG_RUNNING environment variable

This will make it possible for child processes to check whether they are
being executed from ngcpcfg, for example to avoid recursion.

Change-Id: I8f51dd7872c458b8c3214be4bc9a4ab133b3e441
changes/86/24686/1
Guillem Jover 8 years ago
parent b3a88d1379
commit 74fc46a3d5

@ -10,6 +10,9 @@ if [ "$UID" -ne 0 ] ; then
exit 1
fi
# Notify subprocesses we are running.
export NGCPCFG_RUNNING=1
# support for testsuite
FUNCTIONS="${FUNCTIONS:-/usr/share/ngcp-ngcpcfg/functions/}"
SCRIPTS="${SCRIPTS:-/usr/share/ngcp-ngcpcfg/scripts/}"

Loading…
Cancel
Save