mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-20 19:59:11 +02:00
add env to disable permission check
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### v7.2.0-beta.1 (coming soon)
|
### v7.2.0-beta.1 (coming soon)
|
||||||
|
* add env PERMISSION_CHECK ([#251](https://github.com/buanet/ioBroker.docker/issues/251))
|
||||||
* add some more DEBUG messages to log
|
* add some more DEBUG messages to log
|
||||||
* add env IOB_BACKITUP_EXTDB to unlock external db backups in backitup adapter
|
* add env IOB_BACKITUP_EXTDB to unlock external db backups in backitup adapter
|
||||||
* reorder dockerfile steps to fulfill ioBroker Docker check
|
* reorder dockerfile steps to fulfill ioBroker Docker check
|
||||||
|
|||||||
16
debian/scripts/iobroker_startup.sh
vendored
16
debian/scripts/iobroker_startup.sh
vendored
@@ -18,6 +18,7 @@ objectsdbhost=$IOB_OBJECTSDB_HOST
|
|||||||
objectsdbport=$IOB_OBJECTSDB_PORT
|
objectsdbport=$IOB_OBJECTSDB_PORT
|
||||||
objectsdbtype=$IOB_OBJECTSDB_TYPE
|
objectsdbtype=$IOB_OBJECTSDB_TYPE
|
||||||
packages=$PACKAGES
|
packages=$PACKAGES
|
||||||
|
permissioncheck=$PERMISSION_CHECK
|
||||||
setgid=$SETGID
|
setgid=$SETGID
|
||||||
setuid=$SETUID
|
setuid=$SETUID
|
||||||
statesdbhost=$IOB_STATESDB_HOST
|
statesdbhost=$IOB_STATESDB_HOST
|
||||||
@@ -219,11 +220,16 @@ echo "$(printf -- '-%.0s' {1..80})"
|
|||||||
echo ' '
|
echo ' '
|
||||||
|
|
||||||
# (Re)Setting permissions to "/opt/iobroker" and "/opt/scripts"
|
# (Re)Setting permissions to "/opt/iobroker" and "/opt/scripts"
|
||||||
echo -n "(Re)setting permissions (This might take a while! Please be patient!)... "
|
if [[ "$permissioncheck" == "false" ]]; then
|
||||||
chown -R $setuid:$setgid /opt/iobroker
|
echo "PERMISSION_CHECK is set to false. Use this at your own risk!"
|
||||||
chown -R $setuid:$setgid /opt/scripts
|
echo ' '
|
||||||
echo 'Done.'
|
else
|
||||||
echo ' '
|
echo -n "(Re)setting permissions (This might take a while! Please be patient!)... "
|
||||||
|
chown -R $setuid:$setgid /opt/iobroker
|
||||||
|
chown -R $setuid:$setgid /opt/scripts
|
||||||
|
echo 'Done.'
|
||||||
|
echo ' '
|
||||||
|
fi
|
||||||
|
|
||||||
# Backing up original iobroker-file and changing sudo to gosu
|
# Backing up original iobroker-file and changing sudo to gosu
|
||||||
echo -n "Fixing \"sudo-bug\" by replacing sudo with gosu... "
|
echo -n "Fixing \"sudo-bug\" by replacing sudo with gosu... "
|
||||||
|
|||||||
Reference in New Issue
Block a user