summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 973bfc0..f823b18 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -476,10 +476,17 @@ Set_defaults ()
# Setting packages string
# LH_PACKAGES
- if [ -z "${LH_PACKAGES}" ] && [ "${LH_ENCRYPTION}" != "disabled" ]
- then
- LH_PACKAGES="loop-aes-utils"
- fi
+ case "${LH_ENCRYPTION}" in
+ ""|disabled)
+ ;;
+
+ *)
+ if ! In_list loop-aes-utils "${LH_PACKAGES}"
+ then
+ LH_PACKAGES="${LH_PACKAGES} loop-aes-utils"
+ fi
+ ;;
+ esac
# Setting packages list string
LH_PACKAGES_LISTS="${LH_PACKAGES_LISTS:-standard}"