mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-20 11:49:10 +02:00
Try to use gosu, not sudo
Signed-off-by: SchumyHao <schumyhaojl@126.com>
This commit is contained in:
@@ -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/*
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user