mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-21 20:05:48 +02:00
Immich: retry mise install on transient npm download failures (#16301)
This commit is contained in:
committed by
GitHub
parent
156f5ae16f
commit
33de14e45c
+10
-1
@@ -214,7 +214,16 @@ EOF
|
|||||||
cd "$SRC_DIR"
|
cd "$SRC_DIR"
|
||||||
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
|
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
|
||||||
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
|
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
|
||||||
$STD mise install
|
mise_ok=0
|
||||||
|
for i in 1 2 3; do
|
||||||
|
$STD mise install && {
|
||||||
|
mise_ok=1
|
||||||
|
break
|
||||||
|
}
|
||||||
|
msg_warn "mise install failed (attempt $i/3) - retrying"
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
[[ "$mise_ok" -eq 1 ]] || exit 1
|
||||||
export PATH="$(mise bin-paths 2>/dev/null | tr '\n' ':')$PATH"
|
export PATH="$(mise bin-paths 2>/dev/null | tr '\n' ':')$PATH"
|
||||||
if ! command -v extism-js >/dev/null 2>&1; then
|
if ! command -v extism-js >/dev/null 2>&1; then
|
||||||
# extism-js ships as a bare gzip-compressed single binary (.gz) that
|
# extism-js ships as a bare gzip-compressed single binary (.gz) that
|
||||||
|
|||||||
@@ -355,7 +355,16 @@ cp LICENSE "$APP_DIR"
|
|||||||
cd "$SRC_DIR"
|
cd "$SRC_DIR"
|
||||||
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
|
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
|
||||||
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
|
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
|
||||||
$STD mise install
|
mise_ok=0
|
||||||
|
for i in 1 2 3; do
|
||||||
|
$STD mise install && {
|
||||||
|
mise_ok=1
|
||||||
|
break
|
||||||
|
}
|
||||||
|
msg_warn "mise install failed (attempt $i/3) - retrying"
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
[[ "$mise_ok" -eq 1 ]] || exit 1
|
||||||
export PATH="$(mise bin-paths 2>/dev/null | tr '\n' ':')$PATH"
|
export PATH="$(mise bin-paths 2>/dev/null | tr '\n' ':')$PATH"
|
||||||
if ! command -v extism-js >/dev/null 2>&1; then
|
if ! command -v extism-js >/dev/null 2>&1; then
|
||||||
# extism-js is published as a bare gzip-compressed single binary (.gz), which
|
# extism-js is published as a bare gzip-compressed single binary (.gz), which
|
||||||
|
|||||||
Reference in New Issue
Block a user