update: reset arc key

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-06-14 20:21:49 +02:00
parent 2921bee62c
commit 0fe9e2a405
2 changed files with 3 additions and 0 deletions

View File

@@ -852,6 +852,8 @@ function updateMenu() {
[ -z "${TAG}" ] && return 1
fi
updateConfigs "${TAG}"
writeConfigKey "arc.key" "" "${USER_CONFIG_FILE}"
ARC_KEY="$(readConfigKey "arc.key" "${USER_CONFIG_FILE}")"
writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
;;

View File

@@ -76,6 +76,7 @@ function arcUpdate() {
# Ask for Boot
dialog --backtitle "$(backtitle)" --title "Update Loader" --aspect 18 \
--infobox "Update successful!" 0 0
writeConfigKey "arc.key" "" "${USER_CONFIG_FILE}"
writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
if [ "${CUSTOM}" == "true" ] && [ ! -f "${PART3_PATH}/automated" ]; then