This commit is contained in:
buanet
2021-10-05 23:53:24 +02:00
parent 507459ebd1
commit 09bc8c0a0f
4 changed files with 8 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y \
cifs-utils \
curl \
gosu \
iputils-ping \
jq \
locales \
nfs-common \

View File

@@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y \
cifs-utils \
curl \
gosu \
iputils-ping \
jq \
locales \
nfs-common \

View File

@@ -5,7 +5,10 @@ then
apt-get -qq update
packages=$(cat /opt/scripts/.packages)
for i in $packages; do
sudo apt-get -qq -y install $i
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
sudo apt-get -qq -y install $i
fi
done
elif [ $1 == "-update" ]
then