summaryrefslogtreecommitdiff
path: root/debian/dpkg.postinst
diff options
context:
space:
mode:
authorScott James Remnant <scott@netsplit.com>2005-06-28 14:19:06 +0100
committerScott James Remnant <scott@netsplit.com>2005-06-28 14:19:06 +0100
commitbaa3c192761f69c5413d230c26fd2f56d79f7193 (patch)
tree3dc47cbc4e66a665a8853c6098d149b5cfff0132 /debian/dpkg.postinst
parent3748a23e47c1af76f291f3c4caa98eefc45ff508 (diff)
downloaddpkg-baa3c192761f69c5413d230c26fd2f56d79f7193.tar.gz
dpkg (1.13.10) unstable; urgency=low
The "Bully's Special Prize" Release. * Removed /usr/sbin/start-stop-daemon. Closes: #313400. * Fixed md5sum diversion removal. Closes: #313415. * Fixed dpkg-source to handle native tarballs with a Debian revision. Closes: #313381, #313433. * Fixed upgrade from pre-sarge dpkg outside of dselect. Closes: #314575. * Changed log times to be local rather than UTC. Closes: #313347. * Changed log writing to be line-buffered. Closes: #314550. * Moved log creation to postinst, and don't fail if base-passwd hasn't been configured yet. Closes: #316084. * Don't try to compile in SELinux support on Hurd. Closes: #313398. * Place code for SELinux support in the right place so it will actually get compiled in and used (Manoj Srivastava). Closes: #314886. * Documentation: - Added missing word to dpkg-architecture manpage. Closes: #313554. - Reference to dpkg manpage in dpkg.cfg corrected. Closes: #314262. * Updated Translations (Christian Perrier): - Basque (Piarres Beobide Egana). Closes: #313474. - Catalan (Jordi Mallach). Closes: #313288. - Czech (Miroslav Kure). Closes: #314431. - Danish (Claus Hindsgaul). - French (Christian Perrier). - German (Jens Seidel). Closes: #314125. - Greek (Greek team). Closes: #314828. - Italian (Lele Gaifax). - Japanese (Kenshi Muto). Closes: #313330. - Russian (Yuri Kozlov). Closes: #313620. * Hebrew translation de-activated on request of the translator until there is better support for RTL languages. Closes: #313282. -- Scott James Remnant <scott@netsplit.com> Tue, 28 Jun 2005 14:19:06 +0100
Diffstat (limited to 'debian/dpkg.postinst')
-rwxr-xr-xdebian/dpkg.postinst13
1 files changed, 12 insertions, 1 deletions
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index be5d107ea..f0126626e 100755
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -149,8 +149,20 @@ divert_md5sum() {
}
+# Create log file and set default permissions if possible
+create_logfile() {
+ logfile=/var/log/dpkg.log
+ touch $logfile
+ chmod 640 $logfile
+ chown root:adm $logfile 2>/dev/null || chown 0:4 $logfile
+}
+
+
case "$1" in
configure)
+ create_database
+ create_logfile
+
case "$2" in
0.* | 1.0.* | 1.1.0 | 1.1.0[^0-9]* | '' )
remove_duplicate_daemons
@@ -160,7 +172,6 @@ case "$1" in
;;
esac
- create_database
move_info_directory
remove_info_symlink
divert_md5sum