logtracker: defaults to print command

This commit is contained in:
Christophe Siraut 2020-08-25 12:23:37 +02:00
parent 120f9bbe3b
commit b2ed0b5466
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
args=$*
test $# -eq 0 && args=print
if [ "$(whoami)" != "logtracker" ]; then
sudo -H -u logtracker logtracker-manage $args
exit $?