added proper headers to source files
This commit is contained in:
6
init.sh
6
init.sh
@@ -1,6 +1,12 @@
|
||||
#!/bin/bash
|
||||
# ------------------------------------------------------------------------------
|
||||
# Init: initialise a computer and conform it
|
||||
# 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
|
||||
set -o pipefail
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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
|
||||
function die()
|
||||
@@ -63,6 +70,7 @@ function backtrace
|
||||
echo "=============================="
|
||||
}
|
||||
|
||||
# Test and exit if not root (or any UID 0 user)
|
||||
check_root()
|
||||
{
|
||||
[[ $NO_ROOT_CHECK == true ]] && return 0
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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
|
||||
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
|
||||
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()
|
||||
{
|
||||
prnt I "Mise à jour de la liste des paquets..."
|
||||
@@ -23,7 +30,7 @@ pkginst()
|
||||
}
|
||||
export -f pkginst
|
||||
|
||||
# Mise à jour
|
||||
# Upgrade
|
||||
pkgupgd()
|
||||
{
|
||||
prnt I "Application de la mise à jours du système..."
|
||||
@@ -31,7 +38,7 @@ pkgupgd()
|
||||
}
|
||||
export -f pkgupgd
|
||||
|
||||
# Désinstallation
|
||||
# Uninstallation
|
||||
pkgrem()
|
||||
{
|
||||
prnt I "Désinstallation de paquets..."
|
||||
@@ -46,7 +53,7 @@ pkgrem()
|
||||
}
|
||||
export -f pkgrem
|
||||
|
||||
# Désinstallation du superflu
|
||||
# Cleanup
|
||||
pkgautorem()
|
||||
{
|
||||
prnt I "Désinstallation de paquets superflus..."
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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
|
||||
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
|
||||
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()
|
||||
{
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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:
|
||||
# * WITH_LDAP_KERB: Shall we install requirements for LDAP/Kerberos auth ?
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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 :
|
||||
# * 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:
|
||||
# * 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:
|
||||
# * 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:
|
||||
# * NTPSERVERS: list of NTP servers
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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:
|
||||
# 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"
|
||||
|
||||
|
||||
@@ -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:
|
||||
# To be defined
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
# 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
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Install desktop environment -- Ubuntu only
|
||||
# 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:
|
||||
# * UBUNTU_FLAVOR: Kind of Ubuntu desktop installation (ubuntu for Gnome3,
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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:
|
||||
# * MK_SERVER: Server IP address
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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:
|
||||
# * 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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -19,6 +19,14 @@
|
||||
# des fichiers concernés (sauf conf) ET un commit dans git. #
|
||||
# #
|
||||
##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
|
||||
export VER_@template@="0.0.1"
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Distribution upgrade module, should be ran prior any other module (also
|
||||
# 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:
|
||||
# * PROXYAPT: Proxy to use with APT (eg. APT Cacher)
|
||||
|
||||
Reference in New Issue
Block a user