From a6d5fc01116f0f9ecd4a09fe3980c2f8efaa9526 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 1 Feb 2021 15:21:26 +0100 Subject: [PATCH] Added a install script --- install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..5e4ca3c --- /dev/null +++ b/install.sh @@ -0,0 +1,12 @@ +#!/usr/bin/bash + +repoPath=$(dirname "$(realpath $0)") + +echo Installing roomcomputer at /opt/... +sudo mkdir -p /opt/roomcomputer +sudo cp -r $repoPath /opt/ + +echo Linking binaries to /usr/bin/... +sudo ln -s /opt/roomcomputer/hue_cmd.py /usr/bin/hue + +echo Done.