From ab964c1c23ef4b7a187b28ac50d343fd310165e6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 11 Oct 2015 16:55:58 +0000 Subject: [PATCH] # make sure required environment variables are set --- installer/ipkg/filebot.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installer/ipkg/filebot.sh b/installer/ipkg/filebot.sh index 54e1e32b..57057e51 100644 --- a/installer/ipkg/filebot.sh +++ b/installer/ipkg/filebot.sh @@ -1,5 +1,12 @@ #!/bin/sh + +# make sure required environment variables are set +if [ -z "$USER" ] +then + export USER=`whoami` +fi + APP_ROOT="/opt/share/filebot" APP_DATA="$APP_ROOT/data/$USER"