added chromium installation (no snap), target filename fix (install_pkg)
This commit is contained in:
33
modules/install_chromium.sh
Normal file
33
modules/install_chromium.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
# Since Ubuntu install snapd version of Chromium and we don't want that
|
||||
# we need a special procedure to install Debian Buster version.
|
||||
# Consequently that module is *Ubuntu centric.
|
||||
|
||||
export VER_install_chromium="0.0.1"
|
||||
|
||||
install_chromium()
|
||||
{
|
||||
# Add Debian Buster repo to sources.list.d directory
|
||||
installfile debian_buster.dist /etc/apt/sources.list.d/
|
||||
|
||||
# Install Debian GPG keys
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A
|
||||
|
||||
# Install package manager conf file for Chromium
|
||||
installfile apt_chromium.conf /etc/apt/preferences.d/
|
||||
|
||||
# Update package list and install
|
||||
pkgupt
|
||||
pkginst chromium
|
||||
}
|
||||
|
||||
precheck_install_chromium()
|
||||
{
|
||||
# Nothing to check
|
||||
:
|
||||
}
|
||||
|
||||
export -f install_chromium
|
||||
export -f precheck_install_chromium
|
||||
@@ -11,7 +11,7 @@ install_pkg()
|
||||
if [[ -n PKGS_BLACKLIST ]]; then
|
||||
for pkg in $PKGS_BLACKLIST; do
|
||||
prnt I "Mise du paquet $pkg en liste noire..."
|
||||
local dest=/usr/apt/apt.conf.d/blacklist_$pkg.conf
|
||||
local dest=/usr/apt/preferences.d/blacklist_$pkg.conf
|
||||
installfile blacklist.conf $dest &&
|
||||
sed -i -e "s/@pkg@/pkg/" $dest
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user