Skip to content

Fix "No passwd entry for user '-'" #10

Merged
merged 1 commit into from Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions mxservicectl
Expand Up @@ -19,6 +19,8 @@ function mxsrv_start_one() {

. ${cfg}

test "$MX_SRV_USER" = "-" && MX_SRV_USER="root"

case "${MX_SRV_SCRIPT}" in
*.service)
systemctl start "${MX_SRV_SCRIPT}" || true
Expand All @@ -41,6 +43,8 @@ function mxsrv_stop_one() {

. ${cfg}

test "$MX_SRV_USER" = "-" && MX_SRV_USER="root"

case "${MX_SRV_SCRIPT}" in
*.service)
systemctl stop "${MX_SRV_SCRIPT}" || true
Expand Down