diff options
-rwxr-xr-x | functions/conffile.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh index e36584a..17121b8 100755 --- a/functions/conffile.sh +++ b/functions/conffile.sh @@ -11,10 +11,15 @@ set -e Read_conffile () { - FILES="${1} ${1}.${LH_ARCHITECTURE} ${1}.${DISTRIBUTION}" - FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||')" - FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${ARCHITECTURE}" - FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${DISTRIBUTION}" + if [ -n "${LH_CONFIG}" ] + then + FILES="${LH_CONFIG}" + else + FILES="${1} ${1}.${LH_ARCHITECTURE} ${1}.${DISTRIBUTION}" + FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||')" + FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${ARCHITECTURE}" + FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${DISTRIBUTION}" + fi for FILE in ${FILES} do |