Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10 from mariux64/fix-su-option
Fix "No passwd entry for user '-'"
  • Loading branch information
donald committed Sep 27, 2022
2 parents 608babf + 1a73b59 commit b51f29e
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit b51f29e

Please sign in to comment.