From 4b50fe5554813009a348252fffa9806e01682206 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 1 Feb 2021 15:33:16 +0100 Subject: [PATCH] Install script fix --- install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4d4f470..184a8ee 100755 --- a/install.sh +++ b/install.sh @@ -2,11 +2,18 @@ repoPath=$(dirname "$(realpath $0)") +# Setup config stuff +$repoPath/setup.sh + + +# Install the stuff echo Creating roomcomputer symlink in /opt/... +sudo rm /opt/roomcomputer sudo ln -s $repoPath /opt/roomcomputer sudo pip install -r /opt/roomcomputer/requirements.txt echo Creating hue_cmd.py symlink in /usr/bin/... -sudo ln -s /opt/roomcomputer/hue_cmd.py /usr/bin/hue +sudo rm /usr/bin/hue +sudo ln -s /opt/roomcomputer/hue_cmd.py /usr/bin/hue echo Done.