changes
This commit is contained in:
parent
dd42e6c9bb
commit
8cca9eac5f
1 changed files with 16 additions and 13 deletions
29
setup.sh
29
setup.sh
|
@ -60,33 +60,36 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
message "Continue with installation..."
|
message "Continue with installation..."
|
||||||
|
message "check sources.list"
|
||||||
|
if ! grep "contrib" /etc/apt/sources.list > /dev/null && grep "non-free" /etc/apt/sources.list > /dev/null
|
||||||
|
then
|
||||||
|
message error "please activate 'contrib' and 'non-free' in your sources.ist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
# iterate through $packages
|
# iterate through $packages
|
||||||
for categorie in $package_categories
|
for categorie in $package_categories
|
||||||
do
|
do
|
||||||
message "Packages category: ${YELLOW}${i}${ENDCOLOR}"
|
message "Packages category: ${YELLOW}${categorie}${ENDCOLOR}"
|
||||||
message "Packages contained: "
|
message "Packages contained: "
|
||||||
message "${GREEN}${packages[$i]}${ENDCOLOR}"
|
message "${GREEN}${packages[$categorie]}${ENDCOLOR}"
|
||||||
|
|
||||||
|
message "running pre-tasks"
|
||||||
# pre installation steps for categories
|
# pre installation steps for categories
|
||||||
case $categorie in
|
case $categorie in
|
||||||
base)
|
|
||||||
if ! grep "contrib" /etc/apt/sources.list && grep "non-free" /etc/apt/sources.list
|
|
||||||
then
|
|
||||||
message error "please activate 'contrib' and 'non-free' in your sources.ist"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
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