# make sure required environment variables are set

This commit is contained in:
Reinhard Pointner 2015-10-11 16:55:58 +00:00
parent 3b1cee165a
commit ab964c1c23
1 changed files with 7 additions and 0 deletions

View File

@ -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"