mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 10:29:00 +02:00
fix container restart in maintenance script
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
## Changelog
|
||||
|
||||
### v8.1.0-beta.4 (coming soon)
|
||||
* fix container restart in maintenance script
|
||||
* fix running maintenance script as iobroker
|
||||
* v8.1.0-beta.3 (05.07.2023)
|
||||
* fix permission issue for restart container as iobroker user
|
||||
|
||||
10
debian/scripts/maintenance.sh
vendored
10
debian/scripts/maintenance.sh
vendored
@@ -153,9 +153,7 @@ stop_iob() {
|
||||
status=$?
|
||||
if (( status >= 2 )); then # syntax error or fatal error
|
||||
return 1
|
||||
fi
|
||||
|
||||
if (( status == 1 )); then # no processes matched
|
||||
elif (( status == 1 )); then # no processes matched
|
||||
return
|
||||
fi
|
||||
|
||||
@@ -166,11 +164,11 @@ stop_iob() {
|
||||
echo -e "\nTimeout reached. Killing remaining processes..."
|
||||
pgrep --list-full -u iobroker
|
||||
pkill --signal SIGKILL -u iobroker -f 'io.'
|
||||
echo "Done."
|
||||
echo "\nDone."
|
||||
return
|
||||
fi
|
||||
echo -n "."
|
||||
sleep 1
|
||||
echo -n "."
|
||||
done
|
||||
else
|
||||
for ((i=0; i<3; i++)); do
|
||||
@@ -179,7 +177,7 @@ stop_iob() {
|
||||
done
|
||||
fi
|
||||
|
||||
echo -e "\nDone."
|
||||
echo -e "Done."
|
||||
}
|
||||
|
||||
# restart container
|
||||
|
||||
Reference in New Issue
Block a user