Try to use gosu, not sudo

Signed-off-by: SchumyHao <schumyhaojl@126.com>
This commit is contained in:
SchumyHao
2019-06-07 01:41:24 +08:00
parent 7736e05e08
commit a8dd8897eb
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 \ locales \
procps \ procps \
python \ python \
sudo \ gosu \
unzip \ unzip \
wget \ wget \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@@ -39,6 +39,9 @@ then
echo 'Restoring done...' echo 'Restoring done...'
fi 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 # Checking for first run of a new installation and renaming ioBroker
if [ -f /opt/iobroker/.install_host ] if [ -f /opt/iobroker/.install_host ]
then then