Testing new update method

This commit is contained in:
Fabio Belavenuto
2022-10-26 13:39:41 -03:00
parent 649b594600
commit a989fb307f
3 changed files with 7 additions and 3 deletions

View File

@@ -915,6 +915,10 @@ function updateMenu() {
while IFS="=" read KEY VALUE; do
mv /tmp/`basename "${KEY}"` "${VALUE}"
done < <(readConfigMap "replace" "/tmp/update-list.yml")
while read F; do
[ -f "${F}" ] && rm -f "${F}"
[ -d "${F}" ] && rm -Rf "${F}"
done < <(readConfigArray "remove" "/tmp/update-list.yml")
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
--yesno "Arpl updated with success to ${TAG}!\nReboot?" 0 0
[ $? -ne 0 ] && continue