backitup restore patch

This commit is contained in:
buanet
2022-07-05 12:14:00 +02:00
parent d1ed0a251a
commit f73e05c3aa
3 changed files with 9 additions and 2 deletions

View File

@@ -1 +1 @@
v7.0.0 v7.0.1-beta.1

View File

@@ -1,4 +1,8 @@
## Changelog ## Changelog
### v7.0.1-beta.1 (05.07.2022)
* backitup restore patch
### v7.0.0 (21.06.2022) ### v7.0.0 (21.06.2022)
* update docs & ci * update docs & ci
* v7.0.0-beta.1 (16.06.2022) * v7.0.0-beta.1 (16.06.2022)

View File

@@ -54,13 +54,16 @@ enable_maintenance() {
if [[ "$killbyname" == yes ]]; then if [[ "$killbyname" == yes ]]; then
# undocumented option, only for use with backitup restore scripts # undocumented option, only for use with backitup restore scripts
# stops iobroker by terminating js-controller process by name (the old way)
echo 'This command will activate maintenance mode and stop js-controller.' echo 'This command will activate maintenance mode and stop js-controller.'
echo 'Activating maintenance mode...' echo 'Activating maintenance mode...'
echo 'maintenance' > "$healthcheck" echo 'maintenance' > "$healthcheck"
sleep 1 sleep 1
echo 'Done.' echo 'Done.'
echo -n 'Stopping ioBroker...' echo -n 'Stopping ioBroker...'
stop_iob pkill -u iobroker -f iobroker.js-controller
sleep 5
echo 'Done.'
return return
fi fi