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:
parent
12c6dd5dff
commit
a77e4339a0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user