This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
3
3
# set version label
4
4
ARG BUILD_DATE
5
5
ARG VERSION
6
- ARG OMADA_VERSION
6
+ ARG APP_VERSION= "$(echo ${VERSION} | awk -F'-ls' '{print $1}')"
7
7
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8
8
LABEL maintainer="thespad"
9
9
@@ -23,15 +23,15 @@ RUN \
23
23
openjdk-8-jre-headless && \
24
24
echo "**** install omada ****" && \
25
25
# 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/ \
28
28
| egrep -m 1 -io 'https?://[^ ]+.tar.gz' \
29
29
| awk -F "/" '{print $NF}' \
30
30
| awk -F '_' '{print $4}' ); \
31
31
fi && \
32
32
mkdir -p /tmp/omada && \
33
33
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" ) && \
35
35
# Download Omada package, try and handle their appalling packaging "standards"
36
36
curl -o \
37
37
/tmp/omada.tar.gz -L \
You can’t perform that action at this time.
0 commit comments