summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-11-21 10:16:58 +0100
committerDaniel Baumann <daniel@debian.org>2009-11-22 14:45:55 +0100
commit565a618df2831f78a29a43524777118624e37d09 (patch)
tree13088f54090bb3d5a300e71803984156f2655f10 /functions
parent9890e03a66de3aec509202199274bd35611f6cbb (diff)
downloadvyos-live-build-565a618df2831f78a29a43524777118624e37d09.tar.gz
vyos-live-build-565a618df2831f78a29a43524777118624e37d09.zip
Setting LH_BASE variable in defaults.sh globally.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 102380514..3179df068 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -11,6 +11,8 @@ Set_defaults ()
{
## config/common
+ LH_BASE="${LH_BASE:-/usr/share/live-helper}"
+
# Setting mode
if [ -z "${LH_MODE}" ]
then
@@ -217,13 +219,13 @@ Set_defaults ()
# Setting includes
if [ -z "${LH_INCLUDES}" ]
then
- LH_INCLUDES="${LH_BASE:-/usr/share/live-helper}/includes"
+ LH_INCLUDES="${LH_BASE}/includes"
fi
# Setting templates
if [ -z "${LH_TEMPLATES}" ]
then
- LH_TEMPLATES="${LH_BASE:-/usr/share/live-helper}/templates"
+ LH_TEMPLATES="${LH_BASE}/templates"
fi
# Setting live helper options