Skip to content
Permalink
Browse files

checking piparty and setup.sh for root

  • Loading branch information...
adangert committed May 4, 2019
1 parent ace03ce commit d39e94939a3b2ca5e4754491a873af9f52a917ab
Showing with 2 additions and 1 deletion.
  1. +2 −1 setup.sh
@@ -98,7 +98,8 @@ setup() {
sudo systemctl disable hciuart || exit -1

uname2="$(stat --format '%U' '/home/pi/JoustMania/setup.sh')"
if [ "${uname2}" = "root" ]; then
uname3="$(stat --format '%U' '/home/pi/JoustMania/piparty.py')"
if [ "${uname2}" = "root" ] || [ "${uname3}" = "root" ] ; then
sudo chown -R pi:pi /home/pi/JoustMania/
espeak "permisions updated, please wait after reboot for Joustmania to start"
else

0 comments on commit d39e949

Please sign in to comment.
You can’t perform that action at this time.