Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions setup/setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash
parent_path=$(cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P)
pushd "$parent_path"
echo "Setting up pool-pi."
echo "Installing required python packages."
pip3 install -r /home/pi/Pool-Pi/setup/requirements.txt
pip3 install -r "$parent_path/requirements.txt"
echo "Configuring systemd."
cp /home/pi/Pool-Pi/setup/poolpi.service /etc/systemd/system/poolpi.service
cp "$parent_path/poolpi.service" /etc/systemd/system/poolpi.service
chmod 644 /etc/systemd/system/poolpi.service
systemctl daemon-reload
systemctl enable --now poolpi.service
echo "Setup script complete."
echo "Setup script complete"
popd