diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/common.sh b/lib/common.sh index 5c9a4fa..6f66050 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -206,8 +206,19 @@ function eval_config { echo "$SIMPLARET not found, please install it before run $0" fi - if [ -z "PATCHES_DIR" ]; then + if [ -z "$PATCHES_DIR" ]; then echo error: please adjust a value for PATCHES_DIR at $CONF fi + + CONSIDER_ALL_PACKAGES_AS_PATCHES="`echo $CONSIDER_ALL_PACKAGES_AS_PATCHES | tr '[:lower:]' '[:upper:]'`" + if [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" != "YES" ] && \ + [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" != "1" ]; then + # Enabling this option, jail-upgrade will look at your + # standard repositories for new packages; if it find a package + # with different version of your current installed package and + # also this package isnt in the packages folder, then the new + # package is apllied; if in doubt, just say no or leave blank. + CONSIDER_ALL_PACKAGES_AS_PATCHES="0" + fi } |