Ensure to run the appropriate late_command script

According to Debian's version.
This commit is contained in:
Jeremy Gardais 2019-07-05 22:48:29 +02:00
parent 0dc5c0f8fb
commit 4799406fac
1 changed files with 3 additions and 1 deletions

View File

@ -40,9 +40,11 @@ update-locale LANG="${NEW_L}"
# download an additionnal script to manage rsyslog and logrotate {{{ # 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 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/ tar xzf /tmp/latecommand.tar.gz -C /tmp/
/bin/sh /tmp/latecommand/post.sh /bin/sh /tmp/latecommand/post."${debian_version}".sh
# }}} # }}}