aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/simplaret b/src/simplaret
index 01fed4f..b58e41b 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -636,12 +636,14 @@ function simplaret_get_jail_patches {
function simplaret_get_patches {
- local jailpath
+ local jailpath oldroot
if [ "$1" == "--upgrade" ]; then
IS_UPGRADE="1"
fi
+ oldroot="$ROOT"
+
# first get patches from the root system
simplaret_get_jail_patches
@@ -649,11 +651,14 @@ function simplaret_get_patches {
if [ -s "$JAIL_LIST" ]; then
for jailpath in `cat $JAIL_LIST`; do
if [ -d "$jailpath/var/log/packages" ]; then
+ ROOT="$jailpath"
simplaret_get_jail_patches $jailpath
fi
done
fi
+ ROOT="$oldroot"
+
}
function simplaret_checksum {