Skip to content

Commit 21bb9c6

Browse files
authored
Immich: add testing repo (#8310)
1 parent 68924a2 commit 21bb9c6

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

ct/immich.sh

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,26 @@ function update_script() {
3939
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
4040
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
4141

42-
if dpkg -l | grep -q "libmimalloc2.0"; then
43-
$STD apt-get update && $STD apt-get install -y libmimalloc3
42+
if [[ ! -f /etc/apt/preferences.d/preferences ]]; then
43+
msg_info "Adding Debian Testing repo"
44+
sed -i 's/ trixie-updates/ trixie-updates testing/g' /etc/apt/sources.list.d/debian.sources
45+
cat <<EOF >/etc/apt/preferences.d/preferences
46+
Package: *
47+
Pin: release a=unstable
48+
Pin-Priority: 450
49+
50+
Package: *
51+
Pin:release a=testing
52+
Pin-Priority: 450
53+
EOF
54+
if [[ -f /etc/apt/preferences.d/immich ]]; then
55+
rm /etc/apt/preferences.d/immich
56+
fi
57+
$STD apt-get update
58+
msg_ok "Added Debian Testing repo"
59+
msg_info "Installing libmimalloc3"
60+
$STD apt-get install -t testing --no-install-recommends libmimalloc3
61+
msg_ok "Installed libmimalloc3"
4462
fi
4563

4664
STAGING_DIR=/opt/staging

install/immich-install.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ $STD apt-get install --no-install-recommends -y \
4646
libgomp1 \
4747
liblqr-1-0 \
4848
libltdl7 \
49-
libmimalloc3 \
5049
libopenjp2-7 \
5150
meson \
5251
ninja-build \
@@ -109,6 +108,23 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
109108
msg_ok "Installed OpenVINO dependencies"
110109
fi
111110

111+
msg_info "Configuring Debian Testing Repo"
112+
sed -i 's/ trixie-updates/ trixie-updates testing/g' /etc/apt/sources.list.d/debian.sources
113+
cat <<EOF >/etc/apt/preferences.d/preferences
114+
Package: *
115+
Pin: release a=unstable
116+
Pin-Priority: 450
117+
118+
Package: *
119+
Pin:release a=testing
120+
Pin-Priority: 450
121+
EOF
122+
$STD apt-get update
123+
msg_ok "Configured Debian Testing repo"
124+
msg_info "Installing libmimalloc3"
125+
$STD apt-get install -t testing --no-install-recommends -yqq libmimalloc3
126+
msg_ok "Installed libmimalloc3"
127+
112128
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
113129
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
114130
PG_VERSION="16" PG_MODULES="pgvector" setup_postgresql

0 commit comments

Comments
 (0)