1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00

Fix architecture detection

This commit is contained in:
tituspijean 2022-08-05 11:05:58 +02:00
parent 75624dc8ce
commit db3e686de7
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 18 additions and 14 deletions

View file

@ -4,23 +4,25 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
case YNH_ARCH in function detect_arch() {
amd64) case "$YNH_ARCH" in
PHOTOPRISM_VERSION="sha256:2a2fc58d5bf77642424854158a06713ce532026bd18a43e07fd71d75365cb8d3" "amd64")
;; PHOTOPRISM_VERSION="sha256:2a2fc58d5bf77642424854158a06713ce532026bd18a43e07fd71d75365cb8d3"
;;
arm64) "arm64")
PHOTOPRISM_VERSION="sha256:ad6de95e77e90a64487085b55dbdbea21c04aff5a17ca3c8790d1deae19b9ee1" PHOTOPRISM_VERSION="sha256:ad6de95e77e90a64487085b55dbdbea21c04aff5a17ca3c8790d1deae19b9ee1"
;; ;;
armhf) "armhf")
PHOTOPRISM_VERSION="sha256:4e0b39a06e0f7ecd11aa8cbd84c739cba3417c99348f52e3433cdeaeeb5474cb" PHOTOPRISM_VERSION="sha256:4e0b39a06e0f7ecd11aa8cbd84c739cba3417c99348f52e3433cdeaeeb5474cb"
;; ;;
*) *)
ynh_die --message="Your server architecture ($YNH_ARCH) is not supported." ynh_die --message="Your server architecture ($YNH_ARCH) is not supported."
;; ;;
esac esac
}
#pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev" #pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev"
pkg_dependencies="" pkg_dependencies=""

View file

@ -124,6 +124,7 @@ ynh_script_progression --message="Making install..."
# Install photoprism # Install photoprism
pushd $final_path/build pushd $final_path/build
detect_arch
./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION ./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
popd popd
mkdir -p "$final_path/live/" mkdir -p "$final_path/live/"

View file

@ -120,6 +120,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
# Install photoprism # Install photoprism
pushd $final_path/build pushd $final_path/build
detect_arch
./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION ./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
popd popd
mkdir -p "$final_path/live/" mkdir -p "$final_path/live/"