summarylogtreecommitdiffstats
path: root/tinymediamanager-cli
blob: 8da4826de2bd30a7b549b9274f6dd10ece9a7823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Command line interface for tinyMediaManager
set -e

mkdir --parents "$HOME/.tiny-media-manager"
mkdir --parents "$HOME/.tiny-media-manager/templates"
cd "$HOME/.tiny-media-manager"
ln --symbolic --force /usr/share/tinyMediaManager/templates/templates.jar ./templates/templates.jar

source /usr/share/tinyMediaManager/tmm.JAVA_OPTS

java $JAVA_OPTS \
  -Dappbase=https://www.tinymediamanager.org/ \
  -Djava.awt.headless=true \
  -cp /usr/share/tinyMediaManager/tmm.jar:/usr/share/tinyMediaManager/lib/* \
  org.tinymediamanager.TinyMediaManager \
  "$@"