luci-app-xteve: use jjm2473 images

This commit is contained in:
jjm2473
2022-12-13 14:45:39 +08:00
parent d93b26466c
commit 6c3fa20d81
3 changed files with 5 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
include $(TOPDIR)/rules.mk
PKG_VERSION:=1.0.0-20221212
PKG_VERSION:=1.0.0-20221213
PKG_RELEASE:=
LUCI_TITLE:=LuCI support for Xteve

View File

@@ -31,12 +31,9 @@ o:depends("hostnet", 0)
o = s:option(Value, "image_name", translate("Image").."<b>*</b>")
o.rmempty = false
o.datatype = "string"
if "x86_64" == docker_info.Architecture then
o:value("alturismo/xteve_guide2go", "alturismo/xteve_guide2go")
o.default = "alturismo/xteve_guide2go"
elseif "aarch64" == docker_info.Architecture then
o:value("coolyzp/xteve_guide2go:linux-arm64", "coolyzp/xteve_guide2go:linux-arm64")
o.default = "coolyzp/xteve_guide2go:linux-arm64"
if "x86_64" == docker_info.Architecture or "aarch64" == docker_info.Architecture then
o:value("jjm2473/xteve_guide2go", "jjm2473/xteve_guide2go")
o.default = "jjm2473/xteve_guide2go"
else
o:value("", translate("Unsupported Architecture"))
o.default = ""

View File

@@ -16,8 +16,7 @@ do_install() {
fi
if [ -z "$image_name" ]; then
local arch=`uname -m`
[ "$arch" = "x86_64" ] && image_name="alturismo/xteve_guide2go"
[ "$arch" = "aarch64" ] && image_name="coolyzp/xteve_guide2go:linux-arm64"
[ "$arch" = "x86_64" -o "$arch" = "aarch64" ] && image_name="jjm2473/xteve_guide2go"
if [ -z "$image_name" ]; then
echo "$arch is unsupported!" >&2
exit 1