lib: use the WORK_PATH base instead of forgejo for the daemon

Instead of hardcoding "forgejo" as the base for the daemon to store
the PID and the logs, use the base of the WORK_PATH so that a given
work path can run a dedicated forgejo instance by the same name.
This commit is contained in:
Earl Warren 2024-06-04 13:04:05 +02:00
parent 4a19e9c90b
commit 2461666aca
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 35 additions and 17 deletions

View file

@ -3,7 +3,7 @@
function test_packages_alpine_version() {
local alpine_version=$1 forgejo_version=$2
stop_daemon forgejo
stop_forgejo
reset_forgejo $PACKAGES_DIR/alpine-app.ini
start_forgejo $forgejo_version