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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user