mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Detach update commands from process
This commit is contained in:
parent
4f9973c193
commit
5a642cafa4
@ -16,6 +16,7 @@ SYSTEMD_AUTO_ENABLE = "enable"
|
||||
RDEPENDS_${PN} = " \
|
||||
bash \
|
||||
socat \
|
||||
nohup \
|
||||
"
|
||||
|
||||
FILES_${PN} += " \
|
||||
|
@ -32,18 +32,18 @@ do
|
||||
fi
|
||||
if [ ${parse[0]} == "host-update" ]; then
|
||||
if [ ! -z ${parse[1]} ]; then
|
||||
resinhub --hostos-version ${parse[1]} || true
|
||||
nohup resinhub --hostos-version ${parse[1]} > /dev/null 2>&1 &
|
||||
else
|
||||
resinhub || true
|
||||
nohup resinhub > /dev/null 2>&1 &
|
||||
fi
|
||||
echo "OK"
|
||||
continue
|
||||
fi
|
||||
if [ ${parse[0]} == "supervisor-update" ]; then
|
||||
if [ ! -z ${parse[1]} ]; then
|
||||
update-resin-supervisor --supervisor-tag ${parse[1]} || true
|
||||
nohup update-resin-supervisor --supervisor-tag ${parse[1]} > /dev/null 2>&1 &
|
||||
else
|
||||
update-resin-supervisor || true
|
||||
nohup update-resin-supervisor > /dev/null 2>&1 &
|
||||
fi
|
||||
echo "OK"
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user