Made install make a symlink instead

master
E. Almqvist 4 years ago
parent a6d5fc0111
commit dc8f508aa5
  1. 1
      README.md
  2. 8
      install.sh

@ -4,6 +4,7 @@ Room-Computer is a simple room controller and is basically a controller for your
### Installation ### Installation
git clone https://github.com/E-Almqvist/roomcomputer.git git clone https://github.com/E-Almqvist/roomcomputer.git
pip install -r requirements.txt pip install -r requirements.txt
Then run the installation script `./install.sh`. This script will make a symlink to `/opt/roomcomputer` and link `hue_cmd.py` to `/usr/bin/hue`.
### Setup and Configuration ### Setup and Configuration
Run the `setup.sh` script in order to copy the necessary files to `~/.config/roomcomputer/`. If you are planning to create a service for the `speech_daemon.py` with systemd; then you can specify its configuration file as the first argument: `speech_daemon.py /path/to/config/config.json`. Run the `setup.sh` script in order to copy the necessary files to `~/.config/roomcomputer/`. If you are planning to create a service for the `speech_daemon.py` with systemd; then you can specify its configuration file as the first argument: `speech_daemon.py /path/to/config/config.json`.

@ -2,11 +2,11 @@
repoPath=$(dirname "$(realpath $0)") repoPath=$(dirname "$(realpath $0)")
echo Installing roomcomputer at /opt/... echo Creating roomcomputer symlink in /opt/...
sudo mkdir -p /opt/roomcomputer sudo ln -s $repoPath /opt/roomcomputer
sudo cp -r $repoPath /opt/ sudo pip install -r /opt/roomcomputer/requirements.txt
echo Linking binaries to /usr/bin/... echo Creating hue_cmd.py symlink in /usr/bin/...
sudo ln -s /opt/roomcomputer/hue_cmd.py /usr/bin/hue sudo ln -s /opt/roomcomputer/hue_cmd.py /usr/bin/hue
echo Done. echo Done.

Loading…
Cancel
Save