10-12-2020, 07:13 PM
(10-12-2020, 05:23 PM)midwestE Wrote: Finally getting around to setting up the new controller as the old one kicked the bucket today (RIP!). I checkout the install script you linked in above post and it seems to have an error when it tries to copy the reef-pi.db on line 233:
sudo cp /boot/reef-pi.db /var/lib/reef-pi/reef-pi.db
Would be better to use the installers current working directory to get the location of the db, as there is little chance of guessing where the user unzipped the installer
CWD="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
sudo cp "${CWD}/reef-pi.db" /var/lib/reef-pi/reef-pi.db
Oh noooo, what happened to it?
I didn't think about that issue but see it could be a problem, thanks for the solution. I'm working on my own software for controller so this comes at a good time as I copy over quite a few more files during install.