mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
[hledger] fix rc script
This commit is contained in:
parent
06451d5fb0
commit
02c94621c0
1 changed files with 2 additions and 2 deletions
|
@ -43,12 +43,12 @@ cat <<EOF > $PKG/etc/rc.d/rc.hledger-web.new
|
||||||
#
|
#
|
||||||
|
|
||||||
DAEMON_USER=gwh
|
DAEMON_USER=gwh
|
||||||
DAEMON_OPTIONS=" --host=0.0.0.0 --port=7458 --base-url=https://my-host.tld --capabilities=view,add,manage "
|
DAEMON_OPTIONS=" --server --host=0.0.0.0 --port=7458 --capabilities=view,add,manage --file=/path/to/file.ledger --base-url=https://my-host.tld "
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
if [ -x /usr/bin/hledger-web ]; then
|
if [ -x /usr/bin/hledger-web ]; then
|
||||||
echo "Starting hledger-web daemon: /usr/bin/hledger-web "
|
echo "Starting hledger-web daemon: /usr/bin/hledger-web "
|
||||||
sudo -u \$DAEMON_USER /usr/bin/hledger-web \$DAEMON_OPTIONS 2> /dev/null
|
sudo -u \$DAEMON_USER /usr/bin/hledger-web \$DAEMON_OPTIONS 2> /dev/null &
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue