beleata74's picture
Release BgTTS 1.0.0 for Home Assistant and Raspberry Pi 5
d83d78a verified
Raw History Blame Contribute Delete
424 Bytes
#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
if [ "$(id -u)" = 0 ]; then
echo 'Run this script as your regular user, without sudo. It will call sudo for the service.' >&2
exit 1
fi
python3 -m venv "$root/.venv"
"$root/.venv/bin/python" -m pip install -r "$root/bgtts/requirements.txt"
sudo python3 "$root/script/install-service.py" --python "$root/.venv/bin/python" --user "$(id -un)" "$@"