Merge pull request #26 from smarthomefans/use_gosu

Try to use gosu, not sudo
This commit is contained in:
Andre
2019-06-13 13:20:05 +02:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
locales \
procps \
python \
sudo \
gosu \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/*

View File

@@ -39,6 +39,9 @@ then
echo 'Restoring done...'
fi
# Change sudo to gosu
sed -i 's/sudo -H -u/gosu/g' /opt/iobroker/iobroker
# Checking for first run of a new installation and renaming ioBroker
if [ -f /opt/iobroker/.install_host ]
then