mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 13:20:40 +00:00
tools.func: correct PATH escaping in ROCm profile script (#12793)
This commit is contained in:
committed by
GitHub
parent
5abd9170ba
commit
38c9421493
+2
-2
@@ -4653,8 +4653,8 @@ EOF
|
|||||||
# Environment (PATH + LD_LIBRARY_PATH)
|
# Environment (PATH + LD_LIBRARY_PATH)
|
||||||
if [[ -d /opt/rocm ]]; then
|
if [[ -d /opt/rocm ]]; then
|
||||||
cat <<'ENVEOF' >/etc/profile.d/rocm.sh
|
cat <<'ENVEOF' >/etc/profile.d/rocm.sh
|
||||||
export PATH="\$PATH:/opt/rocm/bin"
|
export PATH="$PATH:/opt/rocm/bin"
|
||||||
export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH:+\$LD_LIBRARY_PATH:}/opt/rocm/lib"
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/opt/rocm/lib"
|
||||||
ENVEOF
|
ENVEOF
|
||||||
chmod +x /etc/profile.d/rocm.sh
|
chmod +x /etc/profile.d/rocm.sh
|
||||||
# Also make available for current session / systemd services
|
# Also make available for current session / systemd services
|
||||||
|
|||||||
Reference in New Issue
Block a user