mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix install script
Former-commit-id: 58920c68dc4635f6a2519b15d921f4c7d3f3ab6f
This commit is contained in:
parent
035f049775
commit
9ba5260def
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user