From 04a72b1f0dc823e6e82317e9ab4fe03312a3c51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Thu, 6 Aug 2020 17:00:52 +0200 Subject: [PATCH] Use os-release to determine Debian version codename --- proxmox/proxmox.template.debian.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxmox/proxmox.template.debian.sh b/proxmox/proxmox.template.debian.sh index 7c093f6..7600b1a 100755 --- a/proxmox/proxmox.template.debian.sh +++ b/proxmox/proxmox.template.debian.sh @@ -40,7 +40,8 @@ update-locale LANG="${NEW_L}" # download an additionnal script to manage rsyslog and logrotate {{{ -debian_version=$(hostnamectl | grep "Operating System" | sed 's/.*(\(.*\))/\1/') +# Previously used hostnamectl but it can't works correctly on LXC container with Apparmor +debian_version=$(grep VERSION_CODENAME /etc/os-release | cut -d"=" -f2) wget https://git.ipr.univ-rennes1.fr/cellinfo/tftpboot/raw/master/scripts/latecommand.tar.gz -O /tmp/latecommand.tar.gz tar xzf /tmp/latecommand.tar.gz -C /tmp/