[Pkg-ocaml-maint-commits] r1356 - trunk/projects/approx/debian
Eric Cooper
ecc-guest@costa.debian.org
Sun, 08 May 2005 00:48:25 +0000
Author: ecc-guest
Date: 2005-05-08 00:48:25 +0000 (Sun, 08 May 2005)
New Revision: 1356
Modified:
trunk/projects/approx/debian/approx.postinst
trunk/projects/approx/debian/changelog
Log:
create /var/cache/approx directory in postinst script
Modified: trunk/projects/approx/debian/approx.postinst
===================================================================
--- trunk/projects/approx/debian/approx.postinst 2005-05-07 21:57:03 UTC (rev 1355)
+++ trunk/projects/approx/debian/approx.postinst 2005-05-08 00:48:25 UTC (rev 1356)
@@ -21,6 +21,12 @@
adduser --quiet --system --group --no-create-home --home /var/cache/approx approx
fi
+# create the approx cache directory if necessary
+if [ ! -d /var/cache/approx ]; then
+ mkdir /var/cache/approx
+ chown approx:approx /var/cache/approx
+fi
+
# make sure the cache is owned by the approx user
if dpkg --compare-versions "$oldversion" lt 1.12 && [ -d /var/cache/approx ]; then
chown -R approx:approx /var/cache/approx/.
@@ -32,7 +38,7 @@
cat >&2 <<EOF
Warning: the location of the cache can no longer be set in approx.conf
(you appear to have it set to $cache).
- See /usr/share/doc/approx/NEWS.Debian.gz for details.
+ See /usr/share/doc/approx/NEWS.Debian.gz for details.
EOF
fi
Modified: trunk/projects/approx/debian/changelog
===================================================================
--- trunk/projects/approx/debian/changelog 2005-05-07 21:57:03 UTC (rev 1355)
+++ trunk/projects/approx/debian/changelog 2005-05-08 00:48:25 UTC (rev 1356)
@@ -1,6 +1,7 @@
approx (1.15) unstable; urgency=low
* Build byte-code version on architectures with no ocamlopt
+ * Create /var/cache/approx directory in postinst script
-- Eric Cooper <ecc@cmu.edu> Sat, 7 May 2005 11:08:38 -0400