1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-07-12 18:18:10 +00:00

pihole -r: Fix WebUI not resetting or installing correctly

Signed-off-by: Naimul Hasan <23284131+agent47nh@users.noreply.github.com>
This commit is contained in:
Naimul Hasan 2023-12-30 11:32:08 +01:00
parent 12c6dd5dff
commit a77e4339a0
No known key found for this signature in database
GPG Key ID: CD5217CECC0CCD2C

View File

@ -2177,14 +2177,20 @@ clone_or_update_repos() {
{ printf " %b Unable to reset %s, exiting installer%b\\n" "${COL_LIGHT_RED}" "${PI_HOLE_LOCAL_REPO}" "${COL_NC}"; \ { printf " %b Unable to reset %s, exiting installer%b\\n" "${COL_LIGHT_RED}" "${PI_HOLE_LOCAL_REPO}" "${COL_NC}"; \
exit 1; \ exit 1; \
} }
# If the Web interface was installed, # If the Web interface was selected for installation,
if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then
# reset it's repo # get the Web git files
resetRepo ${webInterfaceDir} || \ getGitFiles ${webInterfaceDir} ${webInterfaceGitUrl} || \
{ printf " %b Unable to reset %s, exiting installer%b\\n" "${COL_LIGHT_RED}" "${webInterfaceDir}" "${COL_NC}"; \ { printf " %b Unable to clone %s into ${webInterfaceDir}, exiting installer%b\\n" "${COL_LIGHT_RED}" "${webInterfaceGitUrl}" "${COL_NC}"; \
exit 1; \ exit 1; \
} }
# If the Web interface was not selected for installation,
else
# reset it's repo
resetRepo ${webInterfaceDir} || \
{ printf " %b Unable to reset %s, exiting installer%b\\n" "${COL_LIGHT_RED}" "${webInterfaceDir}, did not likely exist before" "${COL_NC}"; }
fi fi
# Otherwise, a repair is happening # Otherwise, a repair is happening
else else
# so get git files for Core # so get git files for Core