48 lines
1.7 KiB
Bash
48 lines
1.7 KiB
Bash
# ------------------------------------------------------------------------------
|
|
# 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.
|
|
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
|
# ------------------------------------------------------------------------------
|
|
# This file is distributed under 3-clause BSD license.
|
|
# The complete license agreement can be obtained at:
|
|
# https://opensource.org/licenses/BSD-3-Clause
|
|
# ------------------------------------------------------------------------------
|
|
# Variable:
|
|
# none
|
|
# ------------------------------------------------------------------------------
|
|
|
|
export VER_install_chromium="0.0.1"
|
|
|
|
install_chromium()
|
|
{
|
|
# Add Debian Buster repo to sources.list.d directory
|
|
prnt I "Ajout du dépot Debian Buster aux sources logicielles..."
|
|
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
|
|
prnt I "Mise à jour de la liste des dépots..."
|
|
pkgupt
|
|
|
|
prnt I "Installation de Chromium..."
|
|
pkginst chromium
|
|
}
|
|
|
|
precheck_install_chromium()
|
|
{
|
|
# Nothing to check
|
|
:
|
|
}
|
|
|
|
export -f install_chromium
|
|
export -f precheck_install_chromium
|