mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CI: Update dist build scripts
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
2
scripts/dist/arch.sh
vendored
2
scripts/dist/arch.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# This script returns the normalized machine architecture (amd64, arm64, or arm).
|
# This script returns the normalized machine architecture (amd64, arm64, or arm).
|
||||||
# An error is returned if the architecture is currently not supported by PhotoPrism.
|
# An error is returned if the architecture is currently not supported by PhotoPrism.
|
||||||
|
|||||||
2
scripts/dist/audit.sh
vendored
2
scripts/dist/audit.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
######################################## TEST STORAGE FOLDER PERMISSIONS ########################################
|
######################################## TEST STORAGE FOLDER PERMISSIONS ########################################
|
||||||
|
|
||||||
|
|||||||
2
scripts/dist/create-users.sh
vendored
2
scripts/dist/create-users.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [ $(id -u) != "0" ]; then
|
if [ $(id -u) != "0" ]; then
|
||||||
|
|||||||
2
scripts/dist/dist-upgrade.sh
vendored
2
scripts/dist/dist-upgrade.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/entrypoint-init.sh
vendored
2
scripts/dist/entrypoint-init.sh
vendored
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# INITIALIZES CONTAINER PACKAGES AND PERMISSIONS
|
# INITIALIZES CONTAINER PACKAGES AND PERMISSIONS
|
||||||
export PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
export PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/install-chrome.sh
vendored
2
scripts/dist/install-chrome.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/install-darktable.sh
vendored
2
scripts/dist/install-darktable.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/install-davfs.sh
vendored
2
scripts/dist/install-davfs.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/install-go-tools.sh
vendored
2
scripts/dist/install-go-tools.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:/usr/local/go/bin:/go/bin"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:/usr/local/go/bin:/go/bin:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
12
scripts/dist/install-go.sh
vendored
12
scripts/dist/install-go.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
GOLANG_VERSION=1.18.4
|
GOLANG_VERSION=1.18.4
|
||||||
DESTDIR=$(realpath "${1:-/usr/local}")
|
DESTDIR=$(realpath "${1:-/usr/local}")
|
||||||
@@ -15,7 +15,15 @@ echo "Installing Go in \"$DESTDIR\"..."
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
SYSTEM_ARCH=$("$(dirname "$0")/arch.sh")
|
if command -v arch &> /dev/null
|
||||||
|
then
|
||||||
|
SYSTEM_ARCH=$(arch)
|
||||||
|
elif [[ $PHOTOPRISM_ARCH ]]; then
|
||||||
|
SYSTEM_ARCH=$PHOTOPRISM_ARCH
|
||||||
|
else
|
||||||
|
SYSTEM_ARCH=$("$(dirname "$0")/arch.sh")
|
||||||
|
fi
|
||||||
|
|
||||||
DESTARCH=${2:-$SYSTEM_ARCH}
|
DESTARCH=${2:-$SYSTEM_ARCH}
|
||||||
|
|
||||||
mkdir -p "$DESTDIR"
|
mkdir -p "$DESTDIR"
|
||||||
|
|||||||
2
scripts/dist/install-gpu.sh
vendored
2
scripts/dist/install-gpu.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/install-mariadb.sh
vendored
2
scripts/dist/install-mariadb.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/install-nodejs.sh
vendored
2
scripts/dist/install-nodejs.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
# abort if not executed as root
|
# abort if not executed as root
|
||||||
if [[ $(id -u) != "0" ]]; then
|
if [[ $(id -u) != "0" ]]; then
|
||||||
|
|||||||
2
scripts/dist/install-tensorflow.sh
vendored
2
scripts/dist/install-tensorflow.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|||||||
2
scripts/dist/tensorflow-driver.sh
vendored
2
scripts/dist/tensorflow-driver.sh
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
|
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts:$PATH"
|
||||||
|
|
||||||
CPU_DETECTED=$(lshw -c processor -json 2>/dev/null)
|
CPU_DETECTED=$(lshw -c processor -json 2>/dev/null)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user