diff --git a/installer/ipkg/filebot.sh b/installer/ipkg/filebot.sh index 5f8c56d6..8b1cd8dc 100644 --- a/installer/ipkg/filebot.sh +++ b/installer/ipkg/filebot.sh @@ -1,2 +1,6 @@ #!/bin/sh -java -Dunixfs=false -DuseExtendedFileAttributes=false -DuseCreationDate=false -Dfile.encoding=UTF-8 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dapplication.analytics=true -Duser.home=/opt/usr/share/filebot/data -Dapplication.dir=/opt/usr/share/filebot/data -Djava.io.tmpdir=/opt/usr/share/filebot/data/temp -Djna.library.path=/opt/usr/share/filebot -Djava.library.path=/opt/usr/share/filebot -Dnet.sourceforge.filebot.AcoustID.fpcalc=/opt/usr/share/filebot/fpcalc -jar /opt/usr/share/filebot/FileBot.jar "$@" \ No newline at end of file + +# force JVM language and encoding settings +export LANG=en_US.utf8 + +java -Dunixfs=false -DuseExtendedFileAttributes=false -DuseCreationDate=false -Dfile.encoding=UTF-8 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dapplication.analytics=true -Duser.home=/opt/share/filebot/data -Dapplication.dir=/opt/share/filebot/data -Djava.io.tmpdir=/opt/share/filebot/data/temp -Djna.library.path=/opt/share/filebot -Djava.library.path=/opt/share/filebot -Dnet.sourceforge.filebot.AcoustID.fpcalc=/opt/share/filebot/fpcalc -jar /opt/share/filebot/FileBot.jar "$@" diff --git a/installer/ipkg/postinst.sh b/installer/ipkg/postinst.sh index 8542820f..ae3c3b1b 100644 --- a/installer/ipkg/postinst.sh +++ b/installer/ipkg/postinst.sh @@ -1,7 +1,7 @@ #!/bin/sh # create /bin symlink -ln -s /opt/usr/share/filebot/bin/filebot.sh /opt/usr/bin/filebot +ln -s /opt/share/filebot/bin/filebot.sh /opt/bin/filebot # delete caches and logs filebot -clear-cache diff --git a/installer/ipkg/prerem.sh b/installer/ipkg/prerem.sh index 4cd85f67..0fcd55aa 100644 --- a/installer/ipkg/prerem.sh +++ b/installer/ipkg/prerem.sh @@ -4,4 +4,4 @@ filebot -clear-cache # remove /bin symlink -rm /opt/usr/bin/filebot +rm /opt/bin/filebot