summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2018-12-10 16:52:59 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2018-12-10 17:31:24 +0100
commit806e94dcd8dbdf7bf1909657fd4331cfe17b4ab0 (patch)
tree6c0795c08971f80cd532dd66416b96215d2ae482 /doc/examples
parent37bdbe03d44975951d2518bb9b3d3636081dca6a (diff)
Set PATH=/usr/sbin:/usr/bin:/sbin:/bin when running dpkg
This avoids a lot of problems from local installations of scripting languages and other stuff in /usr/local for which maintainer scripts are not prepared. [v3: Inherit PATH during tests, check overrides work] [v2: Add testing]
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/configure-index4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/examples/configure-index b/doc/examples/configure-index
index 99aedfd19..d7bd3daba 100644
--- a/doc/examples/configure-index
+++ b/doc/examples/configure-index
@@ -461,6 +461,10 @@ DPkg
// Probably don't want to use force-downgrade..
Options {"--force-overwrite";"--force-downgrade";}
+ // Defaults to /usr/sbin:/usr/bin:/sbin:/bin, might be set to empty
+ // string to inherit from environment
+ Path "<STRING>";
+
// Auto re-mounting of a readonly /usr
Pre-Invoke {"mount -o remount,rw /usr";};
Post-Invoke {"mount -o remount,ro /usr";};