mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Merge pull request #3527 from MichaIng/patch-1
Add default locations to PATH to assure that all basic commands are available
This commit is contained in:
commit
319b8eef75
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@
|
||||||
# instead of continuing the installation with something broken
|
# instead of continuing the installation with something broken
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Set PATH to a usual default to assure that all basic commands are available.
|
||||||
|
# When using "su" an uncomplete PATH could be passed: https://github.com/pi-hole/pi-hole/issues/3209
|
||||||
|
export PATH+=':/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
||||||
|
|
||||||
######## VARIABLES #########
|
######## VARIABLES #########
|
||||||
# For better maintainability, we store as much information that can change in variables
|
# For better maintainability, we store as much information that can change in variables
|
||||||
# This allows us to make a change in one place that can propagate to all instances of the variable
|
# This allows us to make a change in one place that can propagate to all instances of the variable
|
||||||
|
|
Loading…
Reference in a new issue