blob: 4989f193189ba627b1fa821caed26b563759b09b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
[ "$EUID" == 0 ] && echo "Please do not run $(basename $0) as root!" && exit
APP_ROOT="/usr/share/papercut-client-bin"
APP_HOME="$HOME/.config/papercut-client"
CONFIG="config.properties"
if [ ! -e "$APP_HOME/$CONFIG" ]; then
mkdir -p "$APP_HOME"
cp "$APP_ROOT/$CONFIG" "$APP_ROOT/$CONFIG.tmpl" "$APP_HOME"
fi
exec java -classpath "$(find $APP_ROOT/lib -name '*.jar' -printf '%p:')" \
-Djava.locale.providers=COMPAT,SPI \
-Dclient.home="$APP_HOME" biz.papercut.pcng.client.uit.UserClient "$@"
|