Skip to content

Commit b0d81f3

Browse files
authored
Photoprism: harmonize curl (#3601)
1 parent dd4af32 commit b0d81f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ct/photoprism.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function update_script() {
3333

3434
msg_info "Updating PhotoPrism"
3535
$STD apt-get install -y libvips42
36-
curl -fsSL "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1" -o $(basename "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1")
36+
curl -fsSL https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1
3737
msg_ok "Updated PhotoPrism"
3838

3939
msg_info "Starting PhotoPrism"

install/photoprism-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ msg_info "Installing PhotoPrism (Patience)"
3535
mkdir -p /opt/photoprism/{cache,config,photos,storage,temp}
3636
mkdir -p /opt/photoprism/photos/{originals,import}
3737
mkdir -p /opt/photoprism_backups
38-
curl -fsSL "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xz -C /opt/photoprism --strip-components=1" -o $(basename "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xz -C /opt/photoprism --strip-components=1")
38+
curl -fsSL https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xz -C /opt/photoprism --strip-components=1
3939
LIBHEIF_URL=$(curl -fsSL "https://dl.photoprism.app/dist/libheif/" | grep -oP "libheif-$(lsb_release -cs)-amd64-v[0-9\.]+\.tar\.gz" | sort -V | tail -n 1)
40-
curl -fsSL "-cO - "https://dl.photoprism.app/dist/libheif/$LIBHEIF_URL" | tar -xzf - -C /usr/local --strip-components=1" -o $(basename "-cO - "https://dl.photoprism.app/dist/libheif/$LIBHEIF_URL" | tar -xzf - -C /usr/local --strip-components=1")
40+
curl -fsSL "https://dl.photoprism.app/dist/libheif/$LIBHEIF_URL" | tar -xzf - -C /usr/local --strip-components=1
4141
ldconfig
4242
chmod -R 755 /opt/photoprism/photos/originals
4343
cat <<EOF >/opt/photoprism/config/.env

0 commit comments

Comments
 (0)