renaming/restructuring

This commit is contained in:
buanet
2021-08-28 23:45:14 +02:00
parent 6734e3f5e1
commit d904c7d9dd
10 changed files with 16 additions and 18 deletions

22
debian/scripts/setup_packages.sh vendored Normal file
View 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