mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-23 05:05:36 +02:00
renaming/restructuring
This commit is contained in:
22
debian/scripts/setup_packages.sh
vendored
Normal file
22
debian/scripts/setup_packages.sh
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $1 == "-install" ]
|
||||
then
|
||||
apt-get -qq update
|
||||
packages=$(cat /opt/scripts/.packages)
|
||||
for i in $packages; do
|
||||
sudo apt-get -qq -y install $i
|
||||
done
|
||||
elif [ $1 == "-update" ]
|
||||
then
|
||||
apt-get -qq update
|
||||
apt-get -qq -y upgrade
|
||||
else
|
||||
echo "No paramerter found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
rm -f /opt/scripts/.packages
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user