summaryrefslogtreecommitdiff
path: root/data/zodttd/_metadata
diff options
context:
space:
mode:
Diffstat (limited to 'data/zodttd/_metadata')
-rwxr-xr-xdata/zodttd/_metadata/extrainst_4
-rwxr-xr-xdata/zodttd/_metadata/postinst2
-rwxr-xr-xdata/zodttd/_metadata/prerm8
3 files changed, 7 insertions, 7 deletions
diff --git a/data/zodttd/_metadata/extrainst_ b/data/zodttd/_metadata/extrainst_
new file mode 100755
index 000000000..77895813b
--- /dev/null
+++ b/data/zodttd/_metadata/extrainst_
@@ -0,0 +1,4 @@
+#!/bin/sh
+if [[ $1 == install || $1 == upgrade ]]; then
+ /usr/bin/apt-key add /usr/share/keyrings/zodttd-keyring.gpg
+fi
diff --git a/data/zodttd/_metadata/postinst b/data/zodttd/_metadata/postinst
deleted file mode 100755
index 188547456..000000000
--- a/data/zodttd/_metadata/postinst
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/usr/bin/apt-key add /usr/share/keyrings/zodttd-keyring.gpg
diff --git a/data/zodttd/_metadata/prerm b/data/zodttd/_metadata/prerm
index 4a327b794..7394703ad 100755
--- a/data/zodttd/_metadata/prerm
+++ b/data/zodttd/_metadata/prerm
@@ -1,6 +1,4 @@
#!/bin/sh
-case "$1" in
- (remove|purge)
- /usr/bin/apt-key del 718BABDF
- ;;
-esac
+if [[ $1 == remove ]]; then
+ /usr/bin/apt-key del 718BABDF
+fi