diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-04 06:06:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-04 06:06:25 +0000 |
commit | b3c61550a5063e56c94ac9dc87ba72c5b087abfe (patch) | |
tree | 56a573ad11cb15cd640ab043f8175c41c186c899 /share | |
parent | Adding upstream version 20190811. (diff) | |
download | open-infrastructure-compute-tools-b3c61550a5063e56c94ac9dc87ba72c5b087abfe.tar.xz open-infrastructure-compute-tools-b3c61550a5063e56c94ac9dc87ba72c5b087abfe.zip |
Adding upstream version 20191104.upstream/20191104
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | share/hooks/pre-start.unlink-console.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/hooks/pre-start.unlink-console.sh b/share/hooks/pre-start.unlink-console.sh new file mode 100644 index 0000000..762ab0e --- /dev/null +++ b/share/hooks/pre-start.unlink-console.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +if grep -qs 'bind=.*/dev:/dev;' "/etc/open-infrastructure/container/config/${NAME}.conf" +then + unlink /dev/console > /dev/null 2>&1 || true +fi |