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 +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 42
42
| grep -E -m 1 -io 'https?://[^ ]+.tar.gz' \
43
43
| awk -F "/" '{print $NF}' \
44
44
| awk -F '_' '{print $4}' ); \
45
- fi && \
46
- echo "**** App version is ${APP_VERSION} ****" && \
45
+ fi && \
46
+ echo "**** App version is ${APP_VERSION} ****" && \
47
47
mkdir -p /tmp/omada && \
48
48
OMADA_DOWNLOAD=$(curl -sL "https://www.tp-link.com/uk/support/download/omada-software-controller/$(echo $APP_VERSION | cut -c 1-2)" \
49
49
| grep -E -io "https?://[^ ]+${APP_VERSION}_linux_x64.tar.gz" ) && \
@@ -52,16 +52,10 @@ RUN \
52
52
/tmp/omada.tar.gz -L \
53
53
${OMADA_DOWNLOAD} && \
54
54
echo "**** unpack omada ****" && \
55
- if [ $(tar -tf /tmp/omada.tar.gz | awk -F "\n " '{print $1;exit}' | grep -i "omada" ) ]; then \
56
- tar xf \
57
- /tmp/omada.tar.gz -C \
58
- /tmp/omada/ --strip-components=1; \
59
- else \
60
- tar xf \
61
- /tmp/omada.tar.gz -C \
62
- /tmp/omada/; \
63
- fi && \
64
- echo "**** install omada ****" && \
55
+ tar xf \
56
+ /tmp/omada.tar.gz -C \
57
+ /tmp/omada/ --strip-components=1 && \
58
+ echo "**** install omada ****" && \
65
59
mkdir -p /app/omada && \
66
60
cd /tmp/omada && \
67
61
for name in bin data properties keystore lib install.sh uninstall.sh; do cp ${name} /app/omada -r; done && \
You can’t perform that action at this time.
0 commit comments