mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] _run_service_command was not properly returning False if command failed (#616)
This commit is contained in:
parent
808d844f84
commit
bfe5056720
1 changed files with 1 additions and 1 deletions
|
@ -663,7 +663,7 @@ def _run_service_command(action, service):
|
||||||
try:
|
try:
|
||||||
# Launch the command
|
# Launch the command
|
||||||
logger.debug("Running '%s'" % cmd)
|
logger.debug("Running '%s'" % cmd)
|
||||||
p = subprocess.Popen(cmd.split(), stderr=subprocess.STDOUT)
|
p = subprocess.check_call(cmd.split(), stderr=subprocess.STDOUT)
|
||||||
# If this command needs a lock (because the service uses yunohost
|
# If this command needs a lock (because the service uses yunohost
|
||||||
# commands inside), find the PID and add a lock for it
|
# commands inside), find the PID and add a lock for it
|
||||||
if need_lock:
|
if need_lock:
|
||||||
|
|
Loading…
Add table
Reference in a new issue