From 00f83b02f59dd2f0c2d5d8f8c2157c73550a23ed Mon Sep 17 00:00:00 2001 From: likeablob <46628917+likeablob@users.noreply.github.com> Date: Sun, 27 Oct 2019 14:20:43 +0900 Subject: [PATCH] Fix bug in install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c9be54c..f959b8e 100755 --- a/install.sh +++ b/install.sh @@ -37,7 +37,7 @@ cp config/fbtft.conf /etc/modprobe.d/ echo fbtft_device > /etc/modules-load.d/fbtft.conf cp config/asound.conf /etc/ cp config/rc.local /etc/ -sed -i.orig -e "s/NODM_USER=root/NODM_USER=${USER}/" /etc/default/nodm +sed -i.orig -e "s/NODM_USER=root/NODM_USER=${SUDO_USER}/" /etc/default/nodm sudo -u $SUDO_USER sh -c "cd switcher && npm i --production"