Skip to content

Commit

Permalink
Merge pull request #515 from linuxkidd/master
Browse files Browse the repository at this point in the history
Fixed missing sudo on sed /etc/xdg/lxsession/LXDE-pi/autostart
  • Loading branch information
ckuethe authored Sep 28, 2021
2 parents a9f788e + a06c577 commit c803820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sudo udevadm control -R
echo -en '\n'

echo -en "${GREEN}* Autostart script\n${NC}"
sed -i '/allsky.sh/d' /etc/xdg/lxsession/LXDE-pi/autostart
[ -e /etc/xdg/lxsession/LXDE-pi/autostart ] && sudo sed -i '/allsky.sh/d' /etc/xdg/lxsession/LXDE-pi/autostart
sed -i "s|User=pi|User=$USER|g" autostart/allsky.service
sed -i "s|/home/pi/allsky|$PWD|g" autostart/allsky.service
sudo install -D -m 0644 autostart/allsky.service /etc/systemd/system/
Expand Down

0 comments on commit c803820

Please sign in to comment.