hyperion.ng/bin/install_hyperion.sh
T. van der Zwan 2b4060c1b1 Update of the installation script to use wget to obtain the latest release in deploy
Former-commit-id: f9b1be2af9c9f2bcfc79fa6851a4dec4d2e494ce
2013-10-02 07:44:08 +00:00

28 lines
918 B
Bash

#!/bin/sh
# Script for downloading and installing the latest Hyperion release
# Make sure that the boblight daemon is no longer running
BOBLIGHT_PROCNR=$(ps -e | grep "boblight" | wc -l)
if [ $BOBLIGHT_PROCNR -eq 1 ];
then
echo 'Found running instance of boblight. Please stop boblight via XBMC menu before installing hyperion'
exit
fi
# Stop hyperion daemon if it is running
initctl stop hyperion
# Copy the hyperion-binaries to the /usr/bin
wget github.com/tvdzwan/hyperion/tree/master/deploy/hyperiond -P /usr/bin/
wget github.com/tvdzwan/hyperion/tree/master/deploy/hyperion-remote -P /usr/bin/
# Copy the hyperion configuration file to /etc
wget github.com/tvdzwan/hyperion/tree/master/config/hyperion.config.json -P /etc/
# Copy the service control configuration to /etc/int
wget github.com/tvdzwan/hyperion/tree/master/bin/hyperion.conf -P /etc/init/
# Start the hyperion daemon
initctl start hyperion