mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
- build to "all !riscv64" arch - it needs the "npm_config_build_from_source" to compile the sqlite dependency, which may increase pipeline size and time - change the rc to be able to create and to fix permissions, also add daemon logs - remove "config.js" template as the app is able to create it on the first run (assuming all permissions are correct) - to ensure permissions are correct, create user home folder and use rc start_pre - removes the patch to use mocha for skip failing tests about version - removes the npm dependency and create the symlink to the binary - move to /usr/share/webapps - added -doc sub-package to MIT license
34 lines
645 B
Bash
34 lines
645 B
Bash
#!/sbin/openrc-run
|
|
|
|
# fallback values for /etc/conf.d/thelounge
|
|
: ${command_user:=thelounge:thelounge}
|
|
: ${directory:=/var/lib/thelounge}
|
|
: ${logdir:=/var/log/thelounge}
|
|
|
|
name="thelounge"
|
|
command="/usr/bin/thelounge"
|
|
command_args="start"
|
|
command_background=true
|
|
pidfile="/run/thelounge.pid"
|
|
|
|
depend() {
|
|
need net
|
|
use dns
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -o "$command_user" "$directory"
|
|
|
|
if [ -n "$logdir" ]; then
|
|
checkpath -d -o "$command_user" "$logdir"
|
|
fi
|
|
|
|
if [ -n "$output_log" ]; then
|
|
checkpath -f -o "$command_user" "$output_log"
|
|
fi
|
|
|
|
if [ -n "$error_log" ]; then
|
|
checkpath -f -o "$command_user" "$error_log"
|
|
fi
|
|
}
|