mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Move ascii berry to after root check, stops the double berry for the sudo refire.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
fb9cdea008
commit
bb3b1bc6ba
1 changed files with 2 additions and 2 deletions
|
@ -1897,8 +1897,6 @@ FTLdetect() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
######## FIRST CHECK ########
|
######## FIRST CHECK ########
|
||||||
# Show the Pi-hole logo so people know it's genuine since the logo and name are trademarked
|
|
||||||
show_ascii_berry
|
|
||||||
# Must be root to install
|
# Must be root to install
|
||||||
local str="Root user check"
|
local str="Root user check"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -1907,6 +1905,8 @@ main() {
|
||||||
if [[ "${EUID}" -eq 0 ]]; then
|
if [[ "${EUID}" -eq 0 ]]; then
|
||||||
# they are root and all is good
|
# they are root and all is good
|
||||||
echo -e " ${TICK} ${str}"
|
echo -e " ${TICK} ${str}"
|
||||||
|
# Show the Pi-hole logo so people know it's genuine since the logo and name are trademarked
|
||||||
|
show_ascii_berry
|
||||||
# Otherwise,
|
# Otherwise,
|
||||||
else
|
else
|
||||||
# They do not have enough privileges, so let the user know
|
# They do not have enough privileges, so let the user know
|
||||||
|
|
Loading…
Reference in a new issue