Merge pull request #63435 from phlogistonjohn/jjm-fix-dash-fix

dashboard: fix the workaround for unpacking node sources
This commit is contained in:
Dan Mick 2025-05-29 15:10:15 -07:00 committed by GitHub
commit 3095ee1395
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ else(WITH_SYSTEM_NPM)
# the current user. This can be an issue due to the node tarball using
# uid 1000 and running the unpack in a id-mapped namespace (container)
# that lets tar set the uid to a "bad" uid outside the namespace
COMMAND bash -c "chown -R $$(id -u):$$(id -g) ${mgr-dashboard-nodeenv-dir}/src"
COMMAND bash -c 'chown -R `id -u`:`id -g` ${mgr-dashboard-nodeenv-dir}/src'
COMMAND mkdir ${mgr-dashboard-nodeenv-dir}/.npm
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "dashboard nodeenv is being installed")