summaryrefslogtreecommitdiff
path: root/install-itzks-workstation
diff options
context:
space:
mode:
authorBenjamin Schlüter <bschlueter@posteo.de>2018-01-24 14:28:30 +0100
committerBenjamin Schlüter <bschlueter@posteo.de>2018-01-24 14:28:30 +0100
commit4b82c01d2ebafed134c1468de5b4ba224d3fb1f5 (patch)
treeecf1d18280a920d75f819181d5aac9fe42e60dcd /install-itzks-workstation
parentdfb3fa5a8829dba7e33fc5ca048680b6cfb057e7 (diff)
downloaditzks-install-script-4b82c01d2ebafed134c1468de5b4ba224d3fb1f5.tar.gz
itzks-install-script-4b82c01d2ebafed134c1468de5b4ba224d3fb1f5.tar.bz2
itzks-install-script-4b82c01d2ebafed134c1468de5b4ba224d3fb1f5.zip
itzks-installscript: Simplify the scripts for adding itzks.list and its contents.
Diffstat (limited to 'install-itzks-workstation')
-rw-r--r--install-itzks-workstation8
1 files changed, 2 insertions, 6 deletions
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