Use os-release to determine Debian version codename
This commit is contained in:
parent
34db514091
commit
04a72b1f0d
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue