From 7aaa211601597aee58e56d99cf8530a7ba52d80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 26 Jan 2022 13:53:47 +0100 Subject: updater-ng: test update to 70.0.0 --- updater-ng/files/uci-defaults | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 updater-ng/files/uci-defaults (limited to 'updater-ng/files/uci-defaults') diff --git a/updater-ng/files/uci-defaults b/updater-ng/files/uci-defaults new file mode 100644 index 0000000..63fe73b --- /dev/null +++ b/updater-ng/files/uci-defaults @@ -0,0 +1,16 @@ +#!/bin/sh +set -eu + +# bootstrap file is created to store content of BOOTSTRAP_UPDATER_BRANCH +# environment variable, if defined, when updater is run in out root mode (the way +# bootstrap is performed). +# BOOTSTRAP_UPDATER_BRANCH contains simply target branch for updater (eg. HBL or HBD). +bootstrap="/usr/share/updater/bootstrap-updater-branch" + +if [ -f "$bootstrap" ]; then + uci -q batch <<-EOF + set updater.turris.branch='$(cat "$bootstrap")' + commit updater.turris.branch + EOF + rm -f "$bootstrap" +fi -- cgit v1.2.3