Skip to content

Commit

Permalink
Fixed some path issues in the install script.
Browse files Browse the repository at this point in the history
the script should always return to PlantMonitorControl as default location and operate from that place
  • Loading branch information
Machriam committed Jun 10, 2024
1 parent 97e2416 commit 713bc35
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions PlantMonitorControl/Install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,31 @@ sudo ln -sf "$HOME"/.dotnet/dotnet /srv/dotnet

# Setup PlantMonitor
sudo pkill -9 -f dotnet
sudo /srv/dotnet build -c Release -o /srv/dist -r linux-arm --no-self-contained ~/PlantMonitor/PlantMonitorControl/PlantMonitorControl.csproj
sudo /srv/dotnet build -c Release -o /srv/dist -r linux-arm --no-self-contained ./PlantMonitorControl.csproj
sudo rm /srv/dist/appsettings.Development.json

# Setup IR-Camera
sudo mkdir /srv/leptonPrograms
sudo cp ~/PlantMonitor/PlantMonitorControl/Install/Lepton/* /srv/leptonPrograms/

# Setup Switchable Outlets
cd ~
git clone https://github.com/WiringPi/WiringPi.git
cd WiringPi
git pull
./build
mkdir /srv/switchableOutlet
sudo cp ~/PlantMonitor/PlantMonitorControl/Install/SwitchableOutlets/* /srv/switchableOutlet/
cd ..
sudo mkdir /srv/switchableOutlet
sudo cp ./Install/SwitchableOutlets/* /srv/switchableOutlet/
cd /srv/switchableOutlet
make
cd ~/PlantMonitor/PlantMonitorControl

# Setup Temperature Sensors
sudo python3 -m venv /srv/pythonClick
sudo /srv/pythonClick/bin/pip3 install adt7422
sudo /srv/pythonClick/bin/pip3 install smbus2
sudo mkdir /srv/pythonClick/temp2ClickPrograms
sudo cp ~/PlantMonitor/PlantMonitorControl/Install/Temp2Click/* /srv/pythonClick/temp2ClickPrograms/
sudo cp ./Install/Temp2Click/* /srv/pythonClick/temp2ClickPrograms/

# Setup PlantMonitor Service
sudo openssl pkcs12 -password pass: -export -out /srv/certs/plantmonitor.pfx -inkey /srv/certs/plantmonitor.key -in /srv/certs/plantmonitor.crt
Expand Down

0 comments on commit 713bc35

Please sign in to comment.