summaryrefslogtreecommitdiff
path: root/debian/dpkg.postinst
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-09-24 21:00:06 +0200
committerGuillem Jover <guillem@debian.org>2017-09-24 21:03:11 +0200
commitb77da84672f77ee4eafaef8a308555c496335738 (patch)
tree3d3bfe5a0a3c990d5e4c9220b45d9d39b269b605 /debian/dpkg.postinst
parentf310046425d3527cfad39072216373f34af9ca31 (diff)
downloaddpkg-b77da84672f77ee4eafaef8a308555c496335738.tar.gz
debian: Add support for DPKG_ROOT in dpkg maintainer scripts
Diffstat (limited to 'debian/dpkg.postinst')
-rwxr-xr-xdebian/dpkg.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index 9771d7fc3..e762b8a2c 100755
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -17,7 +17,7 @@ create_database() {
# Create log file and set default permissions if possible
create_logfile() {
- logfile=/var/log/dpkg.log
+ logfile=$DPKG_ROOT/var/log/dpkg.log
touch $logfile
chmod 644 $logfile
chown root:root $logfile 2>/dev/null || chown 0:0 $logfile