Skip to content

Commit

Permalink
fix permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
buanet committed Jul 5, 2023
1 parent 3d83c7f commit 4fe9c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Changelog

### v8.1.0-beta.3 (05.07.2023)
* fix permission issue for restart container as iobroker user
* fix issue with js-controller ui upgrade
* fix small issues in maintenance script
* update action workflows
Expand Down
8 changes: 4 additions & 4 deletions debian/scripts/maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ disable_maintenance() {

echo 'Deactivating maintenance mode and forcing container to stop or restart...'
echo 'stopping' > "$healthcheck"
pkill -u root
gosu root pkill -u root
echo 'Done.'
}

Expand Down Expand Up @@ -141,7 +141,7 @@ upgrade_jscontroller() {
echo 'Container will be stopped or restarted in 5 seconds...'
sleep 5
echo 'stopping' > "$healthcheck"
pkill -u root
gosu root pkill -u root
}

# stop iobroker and wait until all processes stopped or pkill_timeout is reached
Expand Down Expand Up @@ -208,7 +208,7 @@ restart_container() {
echo 'Container will be stopped or restarted in 5 seconds...'
sleep 5
echo 'stopping' > "$healthcheck"
pkill -u root
gosu root pkill -u root
}

# restore iobroker
Expand Down Expand Up @@ -265,7 +265,7 @@ restore_iobroker() {
echo 'Container will be stopped or restarted in 10 seconds...'
sleep 10
echo 'stopping' > "$healthcheck"
pkill -u root
gosu root pkill -u root
}

# parsing commands and options
Expand Down

0 comments on commit 4fe9c10

Please sign in to comment.