mirror of
https://github.com/Kron4ek/Conty
synced 2025-01-18 10:26:19 +01:00
Increase the priority of user-defined PATH
This commit is contained in:
parent
8c4e89430b
commit
b126b8aaff
1 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,7 @@ working_dir=/tmp/"$(basename "${script}")"_"$(id -un)"_$RANDOM
|
||||||
# a problem with mounting the squashfs image due to an incorrectly calculated offset.
|
# a problem with mounting the squashfs image due to an incorrectly calculated offset.
|
||||||
|
|
||||||
# The size of this script
|
# The size of this script
|
||||||
scriptsize=6575
|
scriptsize=6699
|
||||||
|
|
||||||
# The size of the utils.tar archive
|
# The size of the utils.tar archive
|
||||||
# utils.tar contains bwrap and squashfuse binaries
|
# utils.tar contains bwrap and squashfuse binaries
|
||||||
|
@ -174,10 +174,11 @@ run_bwrap () {
|
||||||
--ro-bind-try /etc/nsswitch.conf /etc/nsswitch.conf \
|
--ro-bind-try /etc/nsswitch.conf /etc/nsswitch.conf \
|
||||||
--ro-bind-try /etc/passwd /etc/passwd \
|
--ro-bind-try /etc/passwd /etc/passwd \
|
||||||
--ro-bind-try /etc/group /etc/group \
|
--ro-bind-try /etc/group /etc/group \
|
||||||
|
--ro-bind-try /etc/hostname /etc/hostname \
|
||||||
--proc /proc \
|
--proc /proc \
|
||||||
--ro-bind-try /usr/local /usr/local \
|
--ro-bind-try /usr/local /usr/local \
|
||||||
${dirs} ${net} \
|
${dirs} ${net} \
|
||||||
--setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:${PATH}" \
|
--setenv PATH "${PATH}:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/lib/jvm/default/bin" \
|
||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue