From 615a162461b686ce77ff52e244e5c8520aa50a49 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 24 Jul 2023 18:42:12 +0200 Subject: [PATCH] This 'detect_arch' function doesn't seem to be used anywhere --- scripts/_common.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 6949207..944a65e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,26 +4,6 @@ # COMMON VARIABLES #================================================= -function detect_arch() { - case "$YNH_ARCH" in - "amd64") - PHOTOPRISM_VERSION="sha256:3381d40181ecdf62932e9530c6b81e6e0f8828a3d373d8dedf662aab96dafba4" - ;; - - "arm64") - PHOTOPRISM_VERSION="sha256:3dcffda0a2b58c91479c883205025edee4ea799fc35be419f9bec708ccb54b7f" - ;; - - "armhf") - PHOTOPRISM_VERSION="sha256:a74f4d0a220af9a5291307bfba36f662d97c4df143f04d951e3c30111916317e" - ;; - - *) - ynh_die --message="Your server architecture ($YNH_ARCH) is not supported." - ;; - esac -} - #================================================= # PERSONAL HELPERS #=================================================