diff options
author | Nathan Robinson | 2021-09-03 01:01:19 -0400 |
---|---|---|
committer | Nathan Robinson | 2021-09-03 01:01:19 -0400 |
commit | 305046b0d371f1c9222957dbbe18d15a721e7047 (patch) | |
tree | 7cd475eb6d0a863874110d1f15b4f18903c5bb43 /papercut-client | |
download | aur-305046b0d371f1c9222957dbbe18d15a721e7047.tar.gz |
initial commit at 01:01 of 2021-09-03
Diffstat (limited to 'papercut-client')
-rw-r--r-- | papercut-client | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/papercut-client b/papercut-client new file mode 100644 index 000000000000..4989f193189b --- /dev/null +++ b/papercut-client @@ -0,0 +1,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 "$@" |