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/