[X2Go-Commits] [live-build-x2go] 43/60: fixed race condition
git-admin at x2go.org
git-admin at x2go.org
Mon Nov 28 19:43:54 CET 2022
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/mate-minidesktop-buster
in repository live-build-x2go.
commit 14aa17ecb81a02d0a1159eab8338fd8024e90dc3
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Thu Jun 25 11:13:37 2020 +0200
fixed race condition
---
config/includes.chroot/etc/network/if-up.d/0410-getbranding | 3 +++
config/includes.chroot/etc/network/if-up.d/0420-getbg | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/config/includes.chroot/etc/network/if-up.d/0410-getbranding b/config/includes.chroot/etc/network/if-up.d/0410-getbranding
index 868b2b4..59a6261 100755
--- a/config/includes.chroot/etc/network/if-up.d/0410-getbranding
+++ b/config/includes.chroot/etc/network/if-up.d/0410-getbranding
@@ -48,5 +48,8 @@ if [ -n "$BRANDINGURL" ] ; then
fi
fi
fi
+ touch /var/lib/live/config/getbranding
) &
+else
+ touch /var/lib/live/config/getbranding
fi
diff --git a/config/includes.chroot/etc/network/if-up.d/0420-getbg b/config/includes.chroot/etc/network/if-up.d/0420-getbg
index cf41bbc..f069010 100755
--- a/config/includes.chroot/etc/network/if-up.d/0420-getbg
+++ b/config/includes.chroot/etc/network/if-up.d/0420-getbg
@@ -20,6 +20,10 @@ if [ -n "$BGURL" ] ; then
echo -en "\n$(date +'%F | %T | ')'$0' is waiting for a client IP." | tee -a /dev/tty8
sleep 2
done
+ while ! [ -f /var/lib/live/config/getbranding ] ; do
+ echo -en "\n$(date +'%F | %T | ')'$0' is waiting for getbranding to finish."
+ sleep 2
+ done
echo -en "\n$(date +'%F | %T | ')'$0': Attempting background SVG download ..." | tee -a /dev/tty8
if echo "$BGURL" | grep -q "^tftp://" ; then
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list