From 4b82c01d2ebafed134c1468de5b4ba224d3fb1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Schl=C3=BCter?= Date: Wed, 24 Jan 2018 14:28:30 +0100 Subject: itzks-installscript: Simplify the scripts for adding itzks.list and its contents. --- install-itzks-workstation | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'install-itzks-workstation') diff --git a/install-itzks-workstation b/install-itzks-workstation index d8f1e53..0274cf5 100644 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -29,18 +29,14 @@ fi invoke-rc.d fetch-ldap-cert start # Alternate add itzks-package repo only if not already there -if [ -e /etc/apt/sources.list.d/itzks.list ] +if [ ! -e /etc/apt/sources.list.d/itzks.list ] then - : - else touch /etc/apt/sources.list.d/itzks.list fi # Add repos to itzks.list if empty -if [ -s /etc/apt/sources.list.d/itzks.list ] +if [ ! -s /etc/apt/sources.list.d/itzks.list ] then - : - else echo "deb http://packages.it-zukunt-schule.de/debian stretch main contrib non-free" >> /etc/apt/sources.list.d/itzks.list echo "deb http://packages.it-zukunft-schule.de/debian stretch-backports main contrib non-free" >> /etc/apt/sources.list.d/itzks.list echo "deb http://packages.it-zukunft-schuke.de/debian sid main contrib non-free" >> /etc/apt/sources.list.d/itzks.list -- cgit v1.2.3