added proper headers to source files
This commit is contained in:
8
init.sh
8
init.sh
@@ -1,7 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
# Init: initialise a computer and conform it
|
# Init: initialise a computer and conform it
|
||||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# trace ERR through pipes
|
# trace ERR through pipes
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
# Error management functions
|
# Error management functions
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Exit with error
|
# Exit with error
|
||||||
function die()
|
function die()
|
||||||
{
|
{
|
||||||
@@ -63,6 +70,7 @@ function backtrace
|
|||||||
echo "=============================="
|
echo "=============================="
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Test and exit if not root (or any UID 0 user)
|
||||||
check_root()
|
check_root()
|
||||||
{
|
{
|
||||||
[[ $NO_ROOT_CHECK == true ]] && return 0
|
[[ $NO_ROOT_CHECK == true ]] && return 0
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
# Some display functions and defines color codes
|
# Some display functions and defines color codes
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Standard 16 colors display declaration
|
# Standard 16 colors display declaration
|
||||||
export DEFAULTFG="\e[0;39m"
|
export DEFAULTFG="\e[0;39m"
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# File manipulation function
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Define normalised time display, filename friendly
|
# Define normalised time display, filename friendly
|
||||||
stdtime()
|
stdtime()
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
# Fonctions de gestion de paquets
|
# ------------------------------------------------------------------------------
|
||||||
|
# Package manager integration
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Mise à jour de la base de donnée
|
# Upgrade package database
|
||||||
pkgupdt()
|
pkgupdt()
|
||||||
{
|
{
|
||||||
prnt I "Mise à jour de la liste des paquets..."
|
prnt I "Mise à jour de la liste des paquets..."
|
||||||
@@ -23,7 +30,7 @@ pkginst()
|
|||||||
}
|
}
|
||||||
export -f pkginst
|
export -f pkginst
|
||||||
|
|
||||||
# Mise à jour
|
# Upgrade
|
||||||
pkgupgd()
|
pkgupgd()
|
||||||
{
|
{
|
||||||
prnt I "Application de la mise à jours du système..."
|
prnt I "Application de la mise à jours du système..."
|
||||||
@@ -31,7 +38,7 @@ pkgupgd()
|
|||||||
}
|
}
|
||||||
export -f pkgupgd
|
export -f pkgupgd
|
||||||
|
|
||||||
# Désinstallation
|
# Uninstallation
|
||||||
pkgrem()
|
pkgrem()
|
||||||
{
|
{
|
||||||
prnt I "Désinstallation de paquets..."
|
prnt I "Désinstallation de paquets..."
|
||||||
@@ -46,7 +53,7 @@ pkgrem()
|
|||||||
}
|
}
|
||||||
export -f pkgrem
|
export -f pkgrem
|
||||||
|
|
||||||
# Désinstallation du superflu
|
# Cleanup
|
||||||
pkgautorem()
|
pkgautorem()
|
||||||
{
|
{
|
||||||
prnt I "Désinstallation de paquets superflus..."
|
prnt I "Désinstallation de paquets superflus..."
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
# Services manipulation functions
|
# Services manipulation functions
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Syntax exec_serv svcname command
|
# Syntax exec_serv svcname command
|
||||||
exec_serv()
|
exec_serv()
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Base support function
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Display help
|
# Display help
|
||||||
disp_help()
|
disp_help()
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Base functions
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
read_commandline()
|
read_commandline()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Add local or remote users
|
# Add local or remote users
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * WITH_LDAP_KERB: Shall we install requirements for LDAP/Kerberos auth ?
|
# * WITH_LDAP_KERB: Shall we install requirements for LDAP/Kerberos auth ?
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
# Secondary drive configuration
|
# Secondary drive configuration
|
||||||
|
# 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 :
|
# Variable :
|
||||||
# * CALCTYPE: filesystem to use (zfs, ext4, xfs)
|
# * CALCTYPE: filesystem to use (zfs, ext4, xfs)
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Locale
|
# Configure locale
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * LOCALESET: List of locale that will be supported by system
|
# * LOCALESET: List of locale that will be supported by system
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Mail systême
|
# Mail system
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * HOSTNAME: Name of the host
|
# * HOSTNAME: Name of the host
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# NTP
|
# Configure NTP
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * NTPSERVERS: list of NTP servers
|
# * NTPSERVERS: list of NTP servers
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Configure SSH client and server
|
# Configure SSH client and server
|
||||||
|
# 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:
|
# Variable:
|
||||||
# none
|
# none
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
# Syslog
|
# ------------------------------------------------------------------------------
|
||||||
|
# Configure Rsyslog
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
export VER_conf_syslog="0.0.1"
|
export VER_conf_syslog="0.0.1"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# create vm module
|
# Create VBox VM
|
||||||
|
# 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:
|
# Variable:
|
||||||
# To be defined
|
# To be defined
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
# Since Ubuntu install snapd version of Chromium and we don't want that
|
# Since Ubuntu install snapd version of Chromium and we don't want that
|
||||||
# we need a special procedure to install Debian Buster version.
|
# we need a special procedure to install Debian Buster version.
|
||||||
# Consequently that module is *Ubuntu centric.
|
# 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:
|
# Variable:
|
||||||
# none
|
# none
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Install desktop environment -- Ubuntu only
|
# Install desktop environment -- Ubuntu only
|
||||||
# Debian version might ask for task-$FLAVOR
|
# Debian version might ask for task-$FLAVOR
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * UBUNTU_FLAVOR: Kind of Ubuntu desktop installation (ubuntu for Gnome3,
|
# * UBUNTU_FLAVOR: Kind of Ubuntu desktop installation (ubuntu for Gnome3,
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Install check_mk agent using xinetd superserver
|
# Install check_mk agent using xinetd superserver
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * MK_SERVER: Server IP address
|
# * MK_SERVER: Server IP address
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Install or remove packages
|
# Install or remove packages
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * PKGS_RMLIST: packages to remove
|
# * PKGS_RMLIST: packages to remove
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
# Profile
|
# ------------------------------------------------------------------------------
|
||||||
|
# Profile installation
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
export VER_install_profile="0.0.1"
|
export VER_install_profile="0.0.1"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
# Supervision
|
# ------------------------------------------------------------------------------
|
||||||
|
# SNMP monitoring conf
|
||||||
|
# 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
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
export VER_patch_snmp="0.0.1"
|
export VER_patch_snmp="0.0.1"
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,14 @@
|
|||||||
# des fichiers concernés (sauf conf) ET un commit dans git. #
|
# des fichiers concernés (sauf conf) ET un commit dans git. #
|
||||||
# #
|
# #
|
||||||
##Description du module @template@
|
##Description du module @template@
|
||||||
|
##Copyright (c) Year Your Name <your.mail@host.tld>
|
||||||
|
##------------------------------------------------------------------------------
|
||||||
|
##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 list:
|
||||||
|
##------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Version du module
|
# Version du module
|
||||||
export VER_@template@="0.0.1"
|
export VER_@template@="0.0.1"
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Distribution upgrade module, should be ran prior any other module (also
|
# Distribution upgrade module, should be ran prior any other module (also
|
||||||
# configure APT)
|
# configure APT)
|
||||||
|
# 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:
|
# Variable:
|
||||||
# * PROXYAPT: Proxy to use with APT (eg. APT Cacher)
|
# * PROXYAPT: Proxy to use with APT (eg. APT Cacher)
|
||||||
|
|||||||
Reference in New Issue
Block a user