Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit e60219d

Browse files
committed
Make ${APP}_VERSION arg generic
1 parent 55886ed commit e60219d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
33
# set version label
44
ARG BUILD_DATE
55
ARG VERSION
6-
ARG OMADA_VERSION
6+
ARG APP_VERSION="$(echo ${VERSION} | awk -F'-ls' '{print $1}')"
77
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
88
LABEL maintainer="thespad"
99

@@ -23,15 +23,15 @@ RUN \
2323
openjdk-8-jre-headless && \
2424
echo "**** install omada ****" && \
2525
# Somehow figure out version detection and download URL here
26-
if [ -z ${OMADA_VERSION+x} ]; then \
27-
OMADA_VERSION=$(curl -sL https://www.tp-link.com/uk/support/download/omada-software-controller/ \
26+
if [ -z ${APP_VERSION+x} ]; then \
27+
APP_VERSION=$(curl -sL https://www.tp-link.com/uk/support/download/omada-software-controller/ \
2828
| egrep -m 1 -io 'https?://[^ ]+.tar.gz' \
2929
| awk -F "/" '{print $NF}' \
3030
| awk -F '_' '{print $4}'); \
3131
fi && \
3232
mkdir -p /tmp/omada && \
3333
OMADA_DOWNLOAD=$(curl -sL https://www.tp-link.com/uk/support/download/omada-software-controller/ \
34-
| egrep -io "https?://[^ ]+${OMADA_VERSION}_linux_x64.tar.gz") && \
34+
| egrep -io "https?://[^ ]+${APP_VERSION}_linux_x64.tar.gz") && \
3535
# Download Omada package, try and handle their appalling packaging "standards"
3636
curl -o \
3737
/tmp/omada.tar.gz -L \

0 commit comments

Comments
 (0)