Fix LavinMQ OpenRC data ownership

This commit is contained in:
Joachim Schlöffel
2026-07-09 09:34:16 +02:00
parent dfd92c522b
commit 04b1244a8c
4 changed files with 23 additions and 5 deletions
+5 -3
View File
@@ -18,9 +18,11 @@ depend() {
}
start_pre() {
checkpath -d -m 0755 -o "${LAVINMQ_USER:-lavinmq}:${LAVINMQ_GROUP:-lavinmq}" \
local service_owner="${LAVINMQ_USER:-lavinmq}:${LAVINMQ_GROUP:-lavinmq}"
checkpath -d -m 0755 -o "$service_owner" \
/run/lavinmq \
/var/log/lavinmq
checkpath -d -m 0750 -o "${LAVINMQ_USER:-lavinmq}:${LAVINMQ_GROUP:-lavinmq}" \
"$data_dir"
checkpath -d -m 0750 -o "$service_owner" "$data_dir"
checkpath -f -m 0640 -o "$service_owner" "$data_dir"/.lock
}