File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ dockerlogin
4747UPDATE_REGISTRY=" $( jq -r ' .update_registry' " ${CONFIG_PATH} " ) "
4848OS_IMAGE=" $( jq -r ' .os_image_lxc' " ${CONFIG_PATH} " ) "
4949OS_VERSION=" $( jq -r ' .os_image_lxc_version // "latest"' " ${CONFIG_PATH} " ) "
50- OS_DIGEST =" $( jq -r ' .os_image_lxc_digest // empty' " ${CONFIG_PATH} " ) "
50+ OS_IMAGE_DIGEST =" $( jq -r ' .os_image_lxc_digest // empty' " ${CONFIG_PATH} " ) "
5151
5252IMAGE_VERSION=" ${UPDATE_REGISTRY}${OS_IMAGE} :${OS_VERSION} "
5353
Original file line number Diff line number Diff line change @@ -354,6 +354,8 @@ create_swap_and_resize_fs() {
354354 mkswap " $SWAPFILE "
355355
356356 fi
357+ elif [[ -n " ${REINIT:- } " ]]; then
358+ return
357359 fi
358360 if [[ -f " ${SWAPFILE} " ]]; then
359361 swapon " $SWAPFILE "
Original file line number Diff line number Diff line change 22
33SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
44
5- cd /etc/systemd/system/ || exit 127
6- ln -sf " ${SCRIPT_DIR} " /cuos-init.service || exit 1
7- ln -sf " ${SCRIPT_DIR} " /cuos-api.service || exit 1
8- ln -sf " ${SCRIPT_DIR} " /cuos-api.socket || exit 1
9- ln -sf " ${SCRIPT_DIR} " /cuos-app.service || exit 1
5+ ln -sf " ${SCRIPT_DIR} " /cuos-init.service /etc/systemd/system/ || exit 1
6+ ln -sf " ${SCRIPT_DIR} " /cuos-api.service /etc/systemd/system/ || exit 1
7+ ln -sf " ${SCRIPT_DIR} " /cuos-api.socket /etc/systemd/system/ || exit 1
8+ ln -sf " ${SCRIPT_DIR} " /cuos-app.service /etc/systemd/system/ || exit 1
109
1110ln -sf " ${SCRIPT_DIR} " /api.sh /usr/bin/cuos || exit 1
1211
Original file line number Diff line number Diff line change 66 "properties" : {
77 "update_registry" : {
88 "type" : " string" ,
9- "description" : " URL of the registry used for system updates (e.g., https://update.triovega .com/v2)"
9+ "description" : " URL of the registry used for system updates (e.g., https://update.example .com/v2)"
1010 },
1111 "update_registry_user" : {
1212 "type" : " string" ,
You can’t perform that action at this time.
0 commit comments