kopia lustrzana https://github.com/km4ack/pi-build
remove pi user check
rodzic
6a2ff3d1ae
commit
b439d34bba
19
build-a-pi
19
build-a-pi
|
@ -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
|
||||
#####################################
|
||||
|
|
Ładowanie…
Reference in New Issue