diff options
Diffstat (limited to 'serviio/serviio.sh')
-rw-r--r-- | serviio/serviio.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/serviio/serviio.sh b/serviio/serviio.sh index 451a645..3293258 100644 --- a/serviio/serviio.sh +++ b/serviio/serviio.sh | |||
@@ -1,10 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | if [ $UID -eq 0 ] | 3 | if [ "$(id -u)" -eq "0" ]; then |
4 | then | 4 | if [ -f /etc/profile.d/jdk.sh ]; then |
5 | if [[ -f /etc/profile.d/jdk.sh ]]; then | ||
6 | . /etc/profile.d/jdk.sh | 5 | . /etc/profile.d/jdk.sh |
7 | elif [[ -f /etc/profile.d/jre.sh ]]; then | 6 | elif [ -f /etc/profile.d/jre.sh ]; then |
8 | . /etc/profile.d/jre.sh | 7 | . /etc/profile.d/jre.sh |
9 | fi | 8 | fi |
10 | export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH | 9 | export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH |