[X2Go-Commits] [live-build-x2go] 66/160: added resiliency in case download directory is missing, fixed imagesize calculation
git-admin at x2go.org
git-admin at x2go.org
Sat Nov 18 01:55:43 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox
in repository live-build-x2go.
commit 8c854f3b94d6579ecb75e1d956e104806d3741c8
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Mon Jul 24 03:24:28 2017 +0200
added resiliency in case download directory is missing, fixed imagesize calculation
---
config/includes.chroot/lib/live/config/2400-live-autoupdate | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config/includes.chroot/lib/live/config/2400-live-autoupdate b/config/includes.chroot/lib/live/config/2400-live-autoupdate
index 62a618c..fc9681c 100755
--- a/config/includes.chroot/lib/live/config/2400-live-autoupdate
+++ b/config/includes.chroot/lib/live/config/2400-live-autoupdate
@@ -152,8 +152,8 @@ echo -n " live-autoupdater (backgrounding update task)"
# if we have access to the entire filesystem, use the
# directory size as base size for the current image -
# and if the download directory is even bigger, use that size
- IMGSIZE=$(du -s "/lib/live/mount/findiso/$(dirname $(sed -e 's/^.*findiso/findiso/' -e 's/ .*$//' /proc/cmdline | awk -F '=' '{ print $2 }'))")
- IMGSIZEDOWNLOAD=$(du -s "/lib/live/mount/findiso/boot/X2Go-live-download")
+ IMGSIZE=$(du -s "/lib/live/mount/findiso/$(dirname $(sed -e 's/^.*findiso/findiso/' -e 's/ .*$//' /proc/cmdline | awk -F '=' '{ print $2 }'))" | awk '{ print $1}')
+ IMGSIZEDOWNLOAD=$(du -s "/lib/live/mount/findiso/boot/X2Go-live-download" || echo "0")
[ $IMGSIZEDOWNLOAD -gt $IMGSIZE ] && IMGSIZE=$IMGSIZEDOWNLOAD
else
IMGSIZE=$(df /lib/live/mount/medium | awk ' /medium/ { print $2}')
--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list