small fixes in beta

This commit is contained in:
buanet
2023-09-28 16:03:02 +02:00
parent f3f5df4819
commit 49f9f9ad8b
3 changed files with 16 additions and 12 deletions

View File

@@ -1,16 +1,19 @@
## Changelog ## Changelog
### v9.0.0-beta.1 (24.09.2023) ### v9.0.0-beta.2 (coming soon)
* remove special settings script and env for zwave ([#377](https://github.com/buanet/ioBroker.docker/issues/377)) * fix issue with unlocking features in backitup ([#381](https://github.com/buanet/ioBroker.docker/issues/381))
* simplify ci/ reduce gh actions * fix issue with fresh initializing iobroker
* ignore errors in "silent cleanup" on first start ([#369](https://github.com/buanet/ioBroker.docker/issues/369)) * v9.0.0-beta.1 (24.09.2023)
* cleanup/ restructure repo * remove special settings script and env for zwave ([#377](https://github.com/buanet/ioBroker.docker/issues/377))
* update nodejs setup process * simplify ci/ reduce gh actions
* update base image to debian 12 (bookworm) * ignore errors in "silent cleanup" on first start ([#369](https://github.com/buanet/ioBroker.docker/issues/369))
* improve security by avoiding root (exept startup script itself) * cleanup/ restructure repo
* restrict iobroker commanline commands (start/ stop/ node fix) * update nodejs setup process
* integrate maintenance script into iobroker command * update base image to debian 12 (bookworm)
* move container config files location * improve security by avoiding root (exept startup script itself)
* restrict iobroker commanline commands (start/ stop/ node fix)
* integrate maintenance script into iobroker command
* move container config files location
### v8.1.0 (15.08.2023) ### v8.1.0 (15.08.2023)
* repo cleanup * repo cleanup

View File

@@ -71,7 +71,6 @@ RUN apt-get update && apt-get upgrade -y \
&& usermod -u 1000 iobroker \ && usermod -u 1000 iobroker \
&& groupmod -g 1000 iobroker \ && groupmod -g 1000 iobroker \
&& chown root:iobroker /usr/sbin/gosu \ && chown root:iobroker /usr/sbin/gosu \
#&& chmod +s /usr/sbin/gosu \
# Set permissions and ownership # Set permissions and ownership
&& chown -R iobroker:iobroker /opt/scripts /opt/userscripts \ && chown -R iobroker:iobroker /opt/scripts /opt/userscripts \
&& chmod 755 /opt/scripts/*.sh \ && chmod 755 /opt/scripts/*.sh \

View File

@@ -306,6 +306,7 @@ fi
# if restored a fresh install, running "iob setup first" for database init (but not on slaves!), otherwise check database connection # if restored a fresh install, running "iob setup first" for database init (but not on slaves!), otherwise check database connection
if [[ -f /opt/iobroker/.fresh_install && "$multihost" != "slave" ]]; then if [[ -f /opt/iobroker/.fresh_install && "$multihost" != "slave" ]]; then
echo -n "Initializing a fresh installation of ioBroker... " echo -n "Initializing a fresh installation of ioBroker... "
if [[ ! -d "/opt/iobroker/log" ]]; then gosu iobroker mkdir "/opt/iobroker/log"; fi
set +e set +e
bash iob setup first > /opt/iobroker/log/iob_setup_first.log 2>&1 bash iob setup first > /opt/iobroker/log/iob_setup_first.log 2>&1
return=$? return=$?
@@ -446,6 +447,7 @@ fi
if [[ "$backitup" == "true" ]]; then if [[ "$backitup" == "true" ]]; then
echo -n "IOB_BACKITUP_EXTDB is \"true\". Unlocking features..." echo -n "IOB_BACKITUP_EXTDB is \"true\". Unlocking features..."
echo "true" > /opt/.docker_config/.backitup echo "true" > /opt/.docker_config/.backitup
echo "true" > /opt/scripts/.docker_config/.backitup # old path, needed until changed in backitup
echo "Done." echo "Done."
echo " " echo " "
fi fi