Update install_hyperion.sh

Former-commit-id: faba41c021bc2f2e672f6369510f048dc9422668
This commit is contained in:
brindosch 2016-06-11 00:28:55 +02:00 committed by GitHub
parent 8746e0795c
commit b90fc1d977
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ if [ $CPU_RPI -eq 1 ] && [ $OS_OPENELEC -eq 1 ]; then
fi
# compatibility layer to move old configs to new config dir
if [ -f "/opt/hyperion" ]; then
if [ -f "/opt/hyperion/bin/hyperiond" ]; then
echo '---> Old installation found, move configs to /etc/hyperion/ and move hyperion to /usr/share/hyperion/'
mv /opt/hyperion/config/*.json /etc/hyperion 2>/dev/null
sed -i "s|/opt/hyperion/effects|/usr/share/hyperion/effects|g" /etc/hyperion/*.json