From 8c4f82ba965285cac6268aa5616fe4130c27eee4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 24 Oct 2019 08:37:22 +0200 Subject: Diverting shutdown commands in progress-linux-container package. Signed-off-by: Daniel Baumann --- debian/local/shutdown | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 debian/local/shutdown (limited to 'debian/local/shutdown') diff --git a/debian/local/shutdown b/debian/local/shutdown new file mode 100755 index 0000000..16ee5ed --- /dev/null +++ b/debian/local/shutdown @@ -0,0 +1,13 @@ +#!/bin/sh + +echo "${0}: disabled in systemd-nspawn container" + +if [ -e /etc/open-infrastructure/container/shutdown.txt ] +then + cat /etc/open-infrastructure/container/shutdown.txt +elif [ -e /usr/share/open-infrastructure/container/shutdown.txt ] +then + cat /usr/share/open-infrastructure/container/shutdown.txt +fi + +exit 1 -- cgit v1.2.3