fix the fail2ban issues and other things
shellcheck / shellcheck (push) Successful in 11s

This commit is contained in:
2026-10-31 08:10:05 -06:00
parent 17c1ba10f7
commit 6770150b11
19 changed files with 580 additions and 51 deletions
+1 -19
View File
@@ -30,23 +30,5 @@ echo "$latest" > "$NOTIFIED"
[ "$action" = "default" ] || [ "$action" = "update" ] || exit 0
# Open the first terminal found. bash -i reads ~/.bashrc, as if the user had
# typed update themselves, and the window stays open to show how it went.
run_update=(bash -ic 'update; echo; read -rp "Press Enter to close this window."')
if command -v xdg-terminal-exec &> /dev/null; then
terminal=(xdg-terminal-exec)
elif command -v kgx &> /dev/null; then
terminal=(kgx --)
elif command -v ghostty &> /dev/null; then
terminal=(ghostty -e)
elif command -v kitty &> /dev/null; then
terminal=(kitty)
else
notify-send --app-name=CoreDesktop "No terminal found" "Open a terminal and run update."
exit 1
fi
# Run the terminal as its own unit: when this service exits, systemd stops
# everything still running in it, which would close the terminal mid-update
exec systemd-run --user --quiet --collect -- "${terminal[@]}" "${run_update[@]}"
exec "$HOME/.local/share/coredesktop/system/run-in-terminal" update
}