* avoid potential permissions issues
This commit is contained in:
parent
9ca69270f7
commit
172ceec372
|
@ -16,6 +16,7 @@ done
|
||||||
WORKING_DIR=`pwd`
|
WORKING_DIR=`pwd`
|
||||||
PRG_DIR=`dirname "$PRG"`
|
PRG_DIR=`dirname "$PRG"`
|
||||||
APP_ROOT=`cd "$PRG_DIR" && pwd`
|
APP_ROOT=`cd "$PRG_DIR" && pwd`
|
||||||
|
APP_DATA="$APP_ROOT/data"
|
||||||
|
|
||||||
# restore original working dir
|
# restore original working dir
|
||||||
cd "$WORKING_DIR"
|
cd "$WORKING_DIR"
|
||||||
|
@ -32,4 +33,4 @@ fi
|
||||||
# force JVM language and encoding settings
|
# force JVM language and encoding settings
|
||||||
export LANG=en_US.utf8
|
export LANG=en_US.utf8
|
||||||
|
|
||||||
java -Djava.awt.headless=true -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dfile.encoding=UTF-8 -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=spk -Dapplication.analytics=true -Dnet.filebot.AcoustID.fpcalc=fpcalc "-Dapplication.dir=$APP_ROOT" "-Djava.io.tmpdir=$APP_ROOT/temp" "-Duser.home=$APP_ROOT" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=$APP_ROOT/prefs.properties" -jar "$APP_ROOT/FileBot.jar" "$@"
|
java -Djava.awt.headless=true -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dfile.encoding=UTF-8 -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=spk -Dapplication.analytics=true "-Dnet.filebot.AcoustID.fpcalc=fpcalc" "-Dapplication.dir=$APP_DATA" "-Djava.io.tmpdir=$APP_DATA/temp" "-Duser.home=$APP_DATA" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=$APP_DATA/prefs.properties" -jar "$APP_ROOT/FileBot.jar" "$@"
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# allow read/write in application home folder
|
# allow read/write in application home folder
|
||||||
chown -R admin.users "$SYNOPKG_PKGDEST"
|
mkdir -m 777 "$SYNOPKG_PKGDEST/data"
|
||||||
|
chown -R admin.users "$SYNOPKG_PKGDEST/data"
|
||||||
|
|
||||||
# create /bin symlink
|
# create /bin symlink
|
||||||
ln -s -f "$SYNOPKG_PKGDEST/filebot.sh" /usr/syno/bin/filebot
|
ln -s -f "$SYNOPKG_PKGDEST/filebot.sh" /usr/syno/bin/filebot
|
||||||
|
|
Loading…
Reference in New Issue