We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52514d3 + 4e16c3d commit f292fb2Copy full SHA for f292fb2
1 file changed
functions-common
@@ -1439,7 +1439,7 @@ function _common_systemd_pitfalls {
1439
# do some sanity checks on $cmd to see things we don't expect to work
1440
1441
if [[ "$cmd" =~ "sudo" ]]; then
1442
- local msg=<<EOF
+ read -r -d '' msg << EOF || true # read returns 1 for EOF, but it is ok here
1443
You are trying to use run_process with sudo, this is not going to work under systemd.
1444
1445
If you need to run a service as a user other than $STACK_USER call it with:
@@ -1450,7 +1450,7 @@ EOF
1450
fi
1451
1452
if [[ ! "$cmd" =~ ^/ ]]; then
1453
1454
The cmd="$cmd" does not start with an absolute path. It will fail to
1455
start under systemd.
1456
0 commit comments