Fix install script

Former-commit-id: 58920c68dc4635f6a2519b15d921f4c7d3f3ab6f
This commit is contained in:
johan 2014-01-04 14:28:33 +01:00
parent 035f049775
commit 9ba5260def

View File

@ -18,7 +18,12 @@ then
fi
# Stop hyperion daemon if it is running
/sbin/initctl stop hyperion
# Start the hyperion daemon
if [ $USE_INITCTL -eq 1 ]; then
/sbin/initctl stop hyperion
else
/usr/sbin/service hyperion stop
fi
# Get and extract the Hyperion binaries and effects to /opt
wget https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.tar.gz -O - | tar -C /opt -xz
@ -44,7 +49,7 @@ if [ $USE_INITCTL -eq 1 ]; then
fi
else
# place startup script in init.d and add it to upstart
ln -fs /opt/hyperion/init.d/hyperion.init.sh /etc/hyperion/init.d/hyperion
ln -fs /opt/hyperion/init.d/hyperion.init.sh /etc/init.d/hyperion
chmod +x /etc/init.d/hyperion
update-rc.d hyperion defaults 98 02
fi