summaryrefslogtreecommitdiff
path: root/debian/java-common.postinst
diff options
context:
space:
mode:
authorMatthias Klose <doko@debian.org>2012-02-26 14:35:43 +0000
committerMatthias Klose <doko@debian.org>2012-02-26 14:35:43 +0000
commit6cef3e7f0bc3a668a3fcdcd768e305baa8fbad06 (patch)
treef22ad7592ba478f9444af60e9c13f85f25dcb475 /debian/java-common.postinst
parentfa6be5dcd9d2866980cabd0847bf507900d84645 (diff)
downloadjava-common-6cef3e7f0bc3a668a3fcdcd768e305baa8fbad06.tar.gz
java-common (0.47) unstable; urgency=low
* Add creation and removal of /etc/.java (common to different OpenJDK versions) in java-common maintainer scripts. Closes: #660604. * Remove Michael from the uploaders list. Closes: #654029. -- Matthias Klose <doko@debian.org> Sun, 26 Feb 2012 15:19:30 +0100
Diffstat (limited to 'debian/java-common.postinst')
-rw-r--r--debian/java-common.postinst21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/java-common.postinst b/debian/java-common.postinst
new file mode 100644
index 0000000..b46c84f
--- /dev/null
+++ b/debian/java-common.postinst
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+configure)
+ [ -d /etc/.java ] || mkdir -m 755 /etc/.java
+ [ -d /etc/.java/.systemPrefs ] || mkdir -m 755 /etc/.java/.systemPrefs
+ if [ ! -f /etc/.java/.systemPrefs/.system.lock ]; then
+ touch /etc/.java/.systemPrefs/.system.lock
+ chmod 644 /etc/.java/.systemPrefs/.system.lock
+ fi
+ if [ ! -f /etc/.java/.systemPrefs/.systemRootModFile ]; then
+ touch /etc/.java/.systemPrefs/.systemRootModFile
+ chmod 644 /etc/.java/.systemPrefs/.systemRootModFile
+ fi
+esac
+
+#DEBHELPER#
+
+exit 0