mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Build: Update scripts/dist/install-s6.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
97e6e83e41
commit
76be526860
11 changed files with 15 additions and 13 deletions
2
scripts/dist/build-libheif.sh
vendored
2
scripts/dist/build-libheif.sh
vendored
|
|
@ -15,7 +15,7 @@ fi
|
|||
|
||||
CURRENT_DIR=$(pwd)
|
||||
|
||||
# Determine the system architecture.
|
||||
# Determine target architecture.
|
||||
if [[ $PHOTOPRISM_ARCH ]]; then
|
||||
SYSTEM_ARCH=$PHOTOPRISM_ARCH
|
||||
else
|
||||
|
|
|
|||
2
scripts/dist/install-chrome.sh
vendored
2
scripts/dist/install-chrome.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
scripts/dist/install-darktable.sh
vendored
2
scripts/dist/install-darktable.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
scripts/dist/install-ffmpeg.sh
vendored
2
scripts/dist/install-ffmpeg.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
scripts/dist/install-go-tools.sh
vendored
2
scripts/dist/install-go-tools.sh
vendored
|
|
@ -17,7 +17,7 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Determine the system architecture.
|
||||
# Determine target architecture.
|
||||
if [[ $PHOTOPRISM_ARCH ]]; then
|
||||
SYSTEM_ARCH=$PHOTOPRISM_ARCH
|
||||
else
|
||||
|
|
|
|||
2
scripts/dist/install-gpu.sh
vendored
2
scripts/dist/install-gpu.sh
vendored
|
|
@ -13,7 +13,7 @@ fi
|
|||
|
||||
set -e
|
||||
|
||||
# Determine the system architecture.
|
||||
# Determine target architecture.
|
||||
if [[ $PHOTOPRISM_ARCH ]]; then
|
||||
SYSTEM_ARCH=$PHOTOPRISM_ARCH
|
||||
else
|
||||
|
|
|
|||
2
scripts/dist/install-jxl.sh
vendored
2
scripts/dist/install-jxl.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
scripts/dist/install-libheif.sh
vendored
2
scripts/dist/install-libheif.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
scripts/dist/install-mariadb.sh
vendored
2
scripts/dist/install-mariadb.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
8
scripts/dist/install-s6.sh
vendored
8
scripts/dist/install-s6.sh
vendored
|
|
@ -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."
|
||||
|
|
|
|||
2
scripts/dist/install-tensorflow.sh
vendored
2
scripts/dist/install-tensorflow.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue