summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-02-10 20:39:16 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-02-10 20:39:16 +0100
commit6f7a5b1c0e91dd3e14b5c37210bf44de3930e672 (patch)
tree205b615e67edaa33ba34eb65351e4847f5c10446
parent5ba6efb62ed4c7770d2bbe03a701c55f307278a5 (diff)
downloaditzks-systems-6f7a5b1c0e91dd3e14b5c37210bf44de3930e672.tar.gz
itzks-systems-6f7a5b1c0e91dd3e14b5c37210bf44de3930e672.tar.bz2
itzks-systems-6f7a5b1c0e91dd3e14b5c37210bf44de3930e672.zip
debian/itzks-systems-workstation.{postinst,maintscript}: Clean-up mess of having /etc/skel in workstation bin:pkg for a while.
-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
+