remove pi user check

pull/290/head^2
KM4ACK 2022-04-12 08:32:19 -05:00
rodzic 6a2ff3d1ae
commit b439d34bba
1 zmienionych plików z 10 dodań i 9 usunięć

Wyświetl plik

@ -144,15 +144,16 @@ fi
#####################################
# Check user is pi
#####################################
if [ "$WHO" != 'pi' ]; then
yad --form --width=500 --text-align=center --center --title="Build-a-Pi" --text-align=center \
--image ${LOGO} --window-icon=${LOGO} --image-on-top --separator="|" --item-separator="|" \
--text="<b>USER NAME IS NOT PI</b>\rThis script is designed to be run as the pi user. Please set the user name to pi \
and try again. You can change the user name after the build is complete but some configuration may not work \
as expected" \
--button=gtk-close
exit 1
fi
#This section commented out 12APRIL2022 for testing. Should be removed once testing is complete.
#if [ "$WHO" != 'pi' ]; then
# yad --form --width=500 --text-align=center --center --title="Build-a-Pi" --text-align=center \
# --image ${LOGO} --window-icon=${LOGO} --image-on-top --separator="|" --item-separator="|" \
# --text="<b>USER NAME IS NOT PI</b>\rThis script is designed to be run as the pi user. Please set the user name to pi \
#and try again. You can change the user name after the build is complete but some configuration may not work \
#as expected" \
# --button=gtk-close
# exit 1
#fi
#####################################
# notice to user
#####################################