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

Commit af76999

Browse files
committed
Update the install script
- follow =github redirections when using curl under OpenElec - Use raw.githubusercontent.com iso raw.github.com to prevent a redirection
1 parent b313005 commit af76999

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/install_hyperion.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ fi
3434
echo 'Downloading hyperion'
3535
if [ $IS_OPENELEC -eq 1 ]; then
3636
# OpenELEC has a readonly file system. Use alternative location
37-
curl --get https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.tar.gz | tar -C /storage -xz
38-
curl --get https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.deps.openelec-rpi.tar.gz | tar -C /storage/hyperion/bin -xz
37+
curl -L --get https://raw.githubusercontent.com/tvdzwan/hyperion/master/deploy/hyperion.tar.gz | tar -C /storage -xz
38+
curl -L --get https://raw.githubusercontent.com/tvdzwan/hyperion/master/deploy/hyperion.deps.openelec-rpi.tar.gz | tar -C /storage/hyperion/bin -xz
3939

4040
# modify the default config to have a correct effect path
4141
sed -i 's:/opt:/storage:g' /storage/hyperion/config/hyperion.config.json
4242
else
43-
wget https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.tar.gz -O - | tar -C /opt -xz
43+
wget https://raw.githubusercontent.com/tvdzwan/hyperion/master/deploy/hyperion.tar.gz -O - | tar -C /opt -xz
4444
fi
4545

4646
# create links to the binaries
@@ -68,9 +68,9 @@ fi
6868
if [ $USE_INITCTL -eq 1 ]; then
6969
echo 'Installing initctl script'
7070
if [ $IS_RASPBMC -eq 1 ]; then
71-
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.conf -P /etc/init/
71+
wget -N https://raw.githubusercontent.com/tvdzwan/hyperion/master/deploy/hyperion.conf -P /etc/init/
7272
else
73-
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.xbian.conf -O /etc/init/hyperion.conf
73+
wget -N https://raw.githubusercontent.com/tvdzwan/hyperion/master/deploy/hyperion.xbian.conf -O /etc/init/hyperion.conf
7474
fi
7575
elif [ $USE_SERVICE -eq 1 ]; then
7676
echo 'Installing startup script in init.d'

0 commit comments

Comments
 (0)