mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
swmodd: 2.1.11
This commit is contained in:
parent
2b35f223c1
commit
f5087667f1
2 changed files with 22 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=swmodd
|
PKG_NAME:=swmodd
|
||||||
PKG_VERSION:=2.1.10
|
PKG_VERSION:=2.1.11
|
||||||
|
|
||||||
LOCAL_DEV:=0
|
LOCAL_DEV:=0
|
||||||
ifneq ($(LOCAL_DEV),1)
|
ifneq ($(LOCAL_DEV),1)
|
||||||
|
|
@ -39,6 +39,10 @@ define Package/swmodd/description
|
||||||
Software module daemon to manage software/deployment units using TR181 datamodel.
|
Software module daemon to manage software/deployment units using TR181 datamodel.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/swmodd/config
|
||||||
|
source "$(SOURCE)/Config.in"
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/swmodd-cgroup
|
define Package/swmodd-cgroup
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,21 @@ configure_crun_container() {
|
||||||
uci_set swmodd ${1} password ""
|
uci_set swmodd ${1} password ""
|
||||||
result=$(${RUNNER} -b "${BUNDLE}" -n "${name}" -r "${url}" -l "${username}:${password}")
|
result=$(${RUNNER} -b "${BUNDLE}" -n "${name}" -r "${url}" -l "${username}:${password}")
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
|
result=$(cat ${BUNDLE}/${name}/config.json |jq '.annotations.org_opencontainers_image_description')
|
||||||
|
if [ "${result}" != "null" ]; then
|
||||||
|
uci_set swmodd ${1} description ${result}
|
||||||
|
fi
|
||||||
|
|
||||||
|
result=$(cat ${BUNDLE}/${name}/config.json |jq '.annotations.org_opencontainers_image_vendor')
|
||||||
|
if [ "${result}" != "null" ]; then
|
||||||
|
uci_set swmodd ${1} vendor ${result}
|
||||||
|
fi
|
||||||
|
|
||||||
|
result=$(cat ${BUNDLE}/${name}/config.json |jq '.annotations.org_opencontainers_image_version')
|
||||||
|
if [ "${result}" != "null" ]; then
|
||||||
|
uci_set swmodd ${1} version ${result}
|
||||||
|
fi
|
||||||
|
|
||||||
uci_set swmodd ${1} du_status Installing_success
|
uci_set swmodd ${1} du_status Installing_success
|
||||||
du_status="Installed"
|
du_status="Installed"
|
||||||
else
|
else
|
||||||
|
|
@ -144,7 +159,8 @@ start_service() {
|
||||||
mkdir -p "${bundle}"
|
mkdir -p "${bundle}"
|
||||||
config_foreach configure_crun_container du_eu_assoc "${bundle}" "${bridge}"
|
config_foreach configure_crun_container du_eu_assoc "${bundle}" "${bridge}"
|
||||||
uci_commit
|
uci_commit
|
||||||
ubus -t 5 call swmodules reload
|
# Add a timer for DuStateChange!
|
||||||
|
(sleep 5 && ubus -t 5 call swmodules reload) &
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_service() {
|
stop_service() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue