mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-21 16:04:57 +02:00
fix(reactive-resume): drop @aws-sdk/client-s3 from cp -rL step
@aws-sdk/client-s3 has a pathologically deep pnpm virtual store symlink tree; cp -rL follows the chain into thousands of nested client-s3 dirs causing 'File name too long' errors. S3 is an optional storage backend so skip it. bcrypt, sharp, linkedom and ioredis are unaffected.
This commit is contained in:
@@ -54,10 +54,6 @@ function update_script() {
|
||||
for pkg in bcrypt sharp linkedom ioredis; do
|
||||
[ -d "${RT_MODS}/${pkg}" ] && cp -rL "${RT_MODS}/${pkg}" "${WEB_MODS}/${pkg}"
|
||||
done
|
||||
if [ -d "${RT_MODS}/@aws-sdk" ]; then
|
||||
mkdir -p "${WEB_MODS}/@aws-sdk"
|
||||
cp -rL "${RT_MODS}/@aws-sdk/client-s3" "${WEB_MODS}/@aws-sdk/client-s3"
|
||||
fi
|
||||
msg_ok "Deployed Nitro Runtime Externals"
|
||||
mv /opt/reactive-resume.env.bak /opt/reactive-resume/.env
|
||||
msg_ok "Updated Reactive Resume"
|
||||
|
||||
@@ -40,10 +40,6 @@ WEB_MODS="/opt/reactive-resume/apps/web/node_modules"
|
||||
for pkg in bcrypt sharp linkedom ioredis; do
|
||||
[ -d "${RT_MODS}/${pkg}" ] && cp -rL "${RT_MODS}/${pkg}" "${WEB_MODS}/${pkg}"
|
||||
done
|
||||
if [ -d "${RT_MODS}/@aws-sdk" ]; then
|
||||
mkdir -p "${WEB_MODS}/@aws-sdk"
|
||||
cp -rL "${RT_MODS}/@aws-sdk/client-s3" "${WEB_MODS}/@aws-sdk/client-s3"
|
||||
fi
|
||||
msg_ok "Deployed Nitro Runtime Externals"
|
||||
mkdir -p /opt/reactive-resume/data
|
||||
msg_ok "Built Reactive Resume"
|
||||
|
||||
Reference in New Issue
Block a user