summaryrefslogtreecommitdiffstats
path: root/share/hooks/pre-start.unlink-console.sh
blob: 762ab0e6384fd6c239f5509bed948e36411c27fe (plain)
1
2
3
4
5
6
7
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