Build: Update scripts/dist/install-s6.sh

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-02-21 02:45:42 +01:00
parent 97e6e83e41
commit 76be526860
11 changed files with 15 additions and 13 deletions

View file

@ -15,7 +15,7 @@ fi
CURRENT_DIR=$(pwd)
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -11,7 +11,7 @@ if [[ $(id -u) != "0" ]]; then
exit 1
fi
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -11,7 +11,7 @@ if [[ $(id -u) != "0" ]]; then
exit 1
fi
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -18,7 +18,7 @@ DESTDIR=$(realpath "${1:-/opt/ffmpeg}")
# In addition, you can specify a custom version as the second argument.
FFMPEG_VERSION=${2:-release}
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -17,7 +17,7 @@ then
exit 1
fi
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -13,7 +13,7 @@ fi
set -e
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -11,7 +11,7 @@ if [[ $(id -u) != "0" ]]; then
exit 1
fi
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -17,7 +17,7 @@ DESTDIR=$(realpath "${1:-/usr/local}")
# In addition, you can specify a custom version to be installed as the second argument.
LIBHEIF_VERSION=${2:-v1.19.5}
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -15,7 +15,7 @@ set -e
. /etc/os-release
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else

View file

@ -24,7 +24,7 @@ fi
# You can provide a custom installation directory as the first argument.
S6_OVERLAY_DESTDIR=$(realpath "${2:-/}")
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else
@ -71,12 +71,14 @@ echo "BINARY URL: ${S6_ARCH_URL}"
echo "NOARCH URL: ${S6_NOARCH_URL}"
echo "------------------------------------------------"
echo "Extracting \"$S6_ARCH_URL\" to \"$S6_OVERLAY_DESTDIR\"."
# Create the destination directory if it does not already exist.
mkdir -p "${S6_OVERLAY_DESTDIR}"
# Download and install the s6-overlay release from GitHub.
echo "Extracting \"$S6_ARCH_URL\" to \"$S6_OVERLAY_DESTDIR\"."
curl -fsSL "$S6_ARCH_URL" | tar -C "${S6_OVERLAY_DESTDIR}" -Jxp
echo "Extracting \"$S6_NOARCH_URL\" to \"$S6_OVERLAY_DESTDIR\"."
mkdir -p "${S6_OVERLAY_DESTDIR}"
curl -fsSL "$S6_NOARCH_URL" | tar -C "${S6_OVERLAY_DESTDIR}" -Jxp
echo "Done."

View file

@ -9,7 +9,7 @@ set -e
TF_VERSION=${TF_VERSION:-1.15.2}
# Determine the system architecture.
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
SYSTEM_ARCH=$PHOTOPRISM_ARCH
else