diff --git a/CHANGELOG.md b/CHANGELOG.md index 58a7e51a..a3bacb9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/debian/scripts/maintenance.sh b/debian/scripts/maintenance.sh index f43b1ebd..91409f7f 100644 --- a/debian/scripts/maintenance.sh +++ b/debian/scripts/maintenance.sh @@ -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.' } @@ -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 @@ -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 @@ -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