changes
This commit is contained in:
parent
dd42e6c9bb
commit
8cca9eac5f
1 changed files with 16 additions and 13 deletions
35
setup.sh
35
setup.sh
|
@ -60,33 +60,36 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
message "Continue with installation..."
|
message "Continue with installation..."
|
||||||
|
message "check sources.list"
|
||||||
# iterate through $packages
|
if ! grep "contrib" /etc/apt/sources.list > /dev/null && grep "non-free" /etc/apt/sources.list > /dev/null
|
||||||
for categorie in $package_categories
|
|
||||||
do
|
|
||||||
message "Packages category: ${YELLOW}${i}${ENDCOLOR}"
|
|
||||||
message "Packages contained: "
|
|
||||||
message "${GREEN}${packages[$i]}${ENDCOLOR}"
|
|
||||||
|
|
||||||
# pre installation steps for categories
|
|
||||||
case $categorie in
|
|
||||||
base)
|
|
||||||
if ! grep "contrib" /etc/apt/sources.list && grep "non-free" /etc/apt/sources.list
|
|
||||||
then
|
then
|
||||||
message error "please activate 'contrib' and 'non-free' in your sources.ist"
|
message error "please activate 'contrib' and 'non-free' in your sources.ist"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
# iterate through $packages
|
||||||
|
for categorie in $package_categories
|
||||||
|
do
|
||||||
|
message "Packages category: ${YELLOW}${categorie}${ENDCOLOR}"
|
||||||
|
message "Packages contained: "
|
||||||
|
message "${GREEN}${packages[$categorie]}${ENDCOLOR}"
|
||||||
|
|
||||||
|
message "running pre-tasks"
|
||||||
|
# pre installation steps for categories
|
||||||
|
case $categorie in
|
||||||
nice)
|
nice)
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386 || error
|
||||||
sudo apt update
|
sudo apt update || error
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
message "installing packages"
|
||||||
|
sudo apt install -y ${packages[$categorie]} || error
|
||||||
|
|
||||||
|
message "running post-tasks"
|
||||||
# post installation steps for categories
|
# post installation steps for categories
|
||||||
case $categorie in
|
case $categorie in
|
||||||
base)
|
base)
|
||||||
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue