1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-08-03 12:58:07 +00:00
pi-hole/advanced/Scripts
MichaIng 6db6c68a4e
update: abort if FTL branch does not exist
Currently, if the FTL update check returns 404, hence the FTL branch does not seem to exist, an error message is printed, but the update continues, only the FTL update is skipped.

This can lead to setups with v5 FTL and v6 core/web, failing at config migration, where FTL is invoked with a v6-only command.

With this change, the update aborts immediately if the FTL branch is invalid, like it does in case of other FTL update check errors (other HTTP error codes than 404 or other curl errors). Hence it continues only if FTL is up-to-date already, or a new version from the given branch has been found.

Signed-off-by: MichaIng <micha@dietpi.com>
2025-07-10 21:37:28 +02:00
..
database_migration Add .shellcheckrc to configure shellcheck ignore SC1090-1 globally 2025-04-06 18:46:47 +01:00
api.sh Set PI_HOLE_SCRIPT_DIR in api.sh 2025-06-05 14:45:29 +02:00
COL_TABLE Set color codes when FORCE_COLOR is true 2025-06-24 19:03:24 +02:00
list.sh Source files relative to the repos root 2025-04-07 14:10:01 +02:00
piholeARPTable.sh Revert "Use PID1 to determine which command to use when toggeling services" 2025-05-31 09:14:08 -07:00
piholeCheckout.sh Remove deprecated and unused colors 2025-06-24 18:51:01 +02:00
piholeDebug.sh Remove os_check from debug script 2025-04-28 21:10:36 +02:00
piholeLogFlush.sh Revert "Use PID1 to determine which command to use when toggeling services" 2025-05-31 09:14:08 -07:00
query.sh Source files relative to the repos root 2025-04-07 14:10:01 +02:00
update.sh update: abort if FTL branch does not exist 2025-07-10 21:37:28 +02:00
updatecheck.sh Source files relative to the repos root 2025-04-07 14:10:01 +02:00
utils.sh Fix more shellcheck warnings 2025-04-07 10:52:57 +02:00
version.sh Fix more shellcheck warnings 2025-04-07 10:52:57 +02:00