Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 58920c6

Browse files
committed
Fix install script
1 parent 762eb60 commit 58920c6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bin/install_hyperion.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ then
1818
fi
1919

2020
# Stop hyperion daemon if it is running
21-
/sbin/initctl stop hyperion
21+
# Start the hyperion daemon
22+
if [ $USE_INITCTL -eq 1 ]; then
23+
/sbin/initctl stop hyperion
24+
else
25+
/usr/sbin/service hyperion stop
26+
fi
2227

2328
# Get and extract the Hyperion binaries and effects to /opt
2429
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
4449
fi
4550
else
4651
# place startup script in init.d and add it to upstart
47-
ln -fs /opt/hyperion/init.d/hyperion.init.sh /etc/hyperion/init.d/hyperion
52+
ln -fs /opt/hyperion/init.d/hyperion.init.sh /etc/init.d/hyperion
4853
chmod +x /etc/init.d/hyperion
4954
update-rc.d hyperion defaults 98 02
5055
fi

0 commit comments

Comments
 (0)