From 4799406facd3ec8e5e217c61a6d33be3364d096b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 5 Jul 2019 22:48:29 +0200 Subject: [PATCH] Ensure to run the appropriate late_command script According to Debian's version. --- proxmox/proxmox.template.debian.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxmox/proxmox.template.debian.sh b/proxmox/proxmox.template.debian.sh index ba30b93..7c093f6 100755 --- a/proxmox/proxmox.template.debian.sh +++ b/proxmox/proxmox.template.debian.sh @@ -40,9 +40,11 @@ update-locale LANG="${NEW_L}" # download an additionnal script to manage rsyslog and logrotate {{{ +debian_version=$(hostnamectl | grep "Operating System" | sed 's/.*(\(.*\))/\1/') + 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/ -/bin/sh /tmp/latecommand/post.sh +/bin/sh /tmp/latecommand/post."${debian_version}".sh # }}}