test
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# Install requirements for add-on
|
||||
#RUN \
|
||||
# apk add --no-cache \
|
||||
# nginx
|
||||
|
||||
#WORKDIR /data
|
||||
|
||||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: VirtualHere Client
|
||||
version: "0.1.316"
|
||||
version: "0.1.317"
|
||||
slug: vhclient
|
||||
description: VirtualHere Client
|
||||
arch:
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
daemon off;
|
||||
error_log stderr;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 8099;
|
||||
allow 172.30.32.2;
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
@@ -4,18 +4,6 @@ options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
||||
autofind=$(echo $options | jq '. | if .autofind then true else false end')
|
||||
autouse=$(echo $options | jq '. | if .autouse then true else false end')
|
||||
|
||||
if bashio::config.has_value 'clientid'; then
|
||||
clientid=($(bashio::config 'clientid'))
|
||||
bashio::log.info "Set ClientId to ${clientid}"
|
||||
/usr/bin/vh_edit_config General ClientId ${clientid}
|
||||
fi
|
||||
|
||||
if bashio::config.has_value 'manualhub'; then
|
||||
manualhub=($(bashio::config 'manualhub'))
|
||||
bashio::log.info "MANUAL HUB ADD,${manualhub}"
|
||||
/usr/bin/vhclient -t "MANUAL HUB ADD,${manualhub}"
|
||||
fi
|
||||
|
||||
#if bashio::config.has_value 'autofind'; then
|
||||
#autofind=($(bashio::config 'autofind'))
|
||||
bashio::log.info "Set AUTOFIND hub to ${autofind}"
|
||||
@@ -42,3 +30,15 @@ fi
|
||||
/usr/bin/vhclient -t "STOP USING ALL LOCAL"
|
||||
fi
|
||||
#fi
|
||||
|
||||
if bashio::config.has_value 'clientid'; then
|
||||
clientid=($(bashio::config 'clientid'))
|
||||
bashio::log.info "Set ClientId to ${clientid}"
|
||||
/usr/bin/vh_edit_config General ClientId ${clientid}
|
||||
fi
|
||||
|
||||
if bashio::config.has_value 'manualhub'; then
|
||||
manualhub=($(bashio::config 'manualhub'))
|
||||
bashio::log.info "MANUAL HUB ADD,${manualhub}"
|
||||
/usr/bin/vhclient -t "MANUAL HUB ADD,${manualhub}"
|
||||
fi
|
||||
|
||||
@@ -11,3 +11,6 @@ configuration:
|
||||
manualhub:
|
||||
name: MANUAL HUB
|
||||
description: Specify server to connect to
|
||||
usbdevices:
|
||||
name: USB devices
|
||||
description: Auto populated from server info, manually update use to true
|
||||
|
||||
Reference in New Issue
Block a user