Skip to content

Commit db91d8a

Browse files
committed
feat: iac manual updates
1 parent 8b7df57 commit db91d8a

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎system/cuos/api.sh‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ EOF
8585
"${SCRIPT_DIR}/init.sh" --reinit
8686

8787
# we need to check, if app container needs update
88-
touch "/data/run-update"
88+
touch "/data/run-update-app"
8989
systemctl restart cuos-app-init.service
9090
fi
9191
;;
@@ -119,10 +119,6 @@ EOF
119119

120120
# apply changes to current partition
121121
"${SCRIPT_DIR}/init.sh" --reinit
122-
123-
# retrigger application
124-
touch "/data/run-update"
125-
systemctl restart cuos-app-init.service
126122
;;
127123

128124
## patch-network - Patch the network. Provide config object.

‎system/cuos/app-init.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,13 @@ UPDATE=0
128128
if [[ -f "/data/run-update" ]]; then
129129
UPDATE=1
130130
rm -f "/data/run-update"
131+
elif [[ -f "/data/run-update-app" ]]; then
132+
UPDATE=2
133+
rm -f "/data/run-update-app"
131134
fi
132135
export UPDATE
133136

134-
if [[ "${UPDATE}" = "1" || -z "${IMAGE_RUNNING}" ]]; then
137+
if [[ "${UPDATE}" != "0" || -z "${IMAGE_RUNNING}" ]]; then
135138
if download_image "${INITIAL_IMAGE}" "${INITIAL_DIGEST}"; then
136139
docker rm -f "${CONTAINER_NAME}" 2>/dev/null || true
137140
fi

0 commit comments

Comments
 (0)