summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/itzks-systems-workstation.maintscript7
-rwxr-xr-xdebian/itzks-systems-workstation.postinst12
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/itzks-systems-workstation.maintscript b/debian/itzks-systems-workstation.maintscript
new file mode 100644
index 0000000..5ccb20a
--- /dev/null
+++ b/debian/itzks-systems-workstation.maintscript
@@ -0,0 +1,7 @@
+rm_conffile /etc/skel/Desktop/firefox.desktop 2020.02.10.2
+rm_conffile /etc/skel/Desktop/libreoffice-calc.desktop 2020.02.10.2
+rm_conffile /etc/skel/Desktop/libreoffice-writer.desktop 2020.02.10.2
+rm_conffile /etc/skel/Desktop/Netzwerkordner.desktop 2020.02.10.2
+rm_conffile /etc/skel/Desktop/pwdchange.desktop 2020.02.10.2
+rm_conffile /etc/skel/.mozilla/firefox/debian-edu.default/pkcs11.txt
+rm_conffile /etc/skel/.pki/nssdb/pkcs11.txt
diff --git a/debian/itzks-systems-workstation.postinst b/debian/itzks-systems-workstation.postinst
new file mode 100755
index 0000000..616b1b4
--- /dev/null
+++ b/debian/itzks-systems-workstation.postinst
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+#DEBHELPER#
+
+# we once shipped /etc/skell in itzks-systems-workstation, bad idea!
+if dpkg --compare-versions "$2" lt "2020.02.10.2" ; then
+ rm -Rfv /etc/skel/Netzwerkordner
+ rmdir -p --ignore-if-not-empty /etc/skel/Desktop
+ rmdir -p --ignore-if-not-empty /etc/skel/.mozilla
+ rmdir -p --ignore-if-not-empty /etc/skel/.pki
+fi
+