Separate csv creation

This commit is contained in:
Bob Mottram 2016-09-05 22:31:22 +01:00
parent ba20ee3778
commit c6bd47f854
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,10 @@ fi
if [ ! -d /usr/share/distro-info ]; then
sudo mkdir -p /usr/share/distro-info
fi
if [ ! -f /usr/share/distro-info/debian.csv ]; then
sudo mkdir -p /usr/share/distro-info
cat <<EOF > /tmp/debian.csv
version,codename,series,created,release,eol
@ -62,7 +66,9 @@ version,codename,series,created,release,eol
,Experimental,experimental,1993-08-16
EOF
sudo mv /tmp/debian.csv /usr/share/distro-info/
fi
if [ ! -f /usr/share/distro-info/ubuntu.csv ]; then
cat <<EOF > /tmp/ubuntu.csv
version,codename,series,created,release,eol,eol-server
4.10,Warty Warthog,warty,2004-03-05,2004-10-20,2006-04-30