From 8a9b7b1caff0828087e5e7095c774a97d11262ec Mon Sep 17 00:00:00 2001 From: quentin-macbook Date: Sun, 25 Nov 2018 10:31:31 +0100 Subject: [PATCH 1/2] Corrections diverses --- README.md | 8 ++++---- auto_config.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f9c63f0..0b4413a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ Basic config for Debian ======================= -This script configure basic config for Debian +This script configures a basic configuration for Debian -The following component are configured: +The following components are configured: + Install git and tig + Set git username and email @@ -17,7 +17,7 @@ The following component are configured: + Send alert email for new ssh connexion + Set Time Zone (see parameters.conf to edit, default "Europe/Paris") -You just need to clone this repository in `/srv/git/basic_config_debian` and execute the `auto_config.sh` script +You just need to clone this repository in `/srv/git/basic_config_debian` and to execute the `auto_config.sh` script ```bash apt install git @@ -27,7 +27,7 @@ cd /srv/git/basic_config_debian ./auto_config.sh ``` -## New aliases and functions available +## New aliases and available functions ### Hard drive + `hddtop`: print hard drive usage diff --git a/auto_config.sh b/auto_config.sh index 8d3d07b..1992eca 100755 --- a/auto_config.sh +++ b/auto_config.sh @@ -38,7 +38,7 @@ GIT_DIR="$(realpath ${0%/*})" # Conf file path CONF_FILE="$GIT_DIR/conf" -# Used if parameter id required - Do not edit +# Used if parameter id is required - Do not edit RELOAD_PARAMATER=false ################################################################################ @@ -65,7 +65,7 @@ function func_read_param() { RELOAD_PARAMATER=true } -# List names of parameter variables and description of parameter +# List names of variables's parameter and their description LIST_PARAM=" UNATTENDED_EMAIL Unattended email alert GIT_USERNAME Git username @@ -88,7 +88,7 @@ if [ -f $CONF_FILE ] ;then fi done else - # Conf file does not exist + # Conf file doesn't exist touch $CONF_FILE # Create empty conf file # For all variable, do request it for DETAIL_PARAM in $LIST_PARAM ;do @@ -109,7 +109,7 @@ fi # Update packages list apt-get update --quiet=2 -# Install the packages +# Install packages apt-get -y install \ git \ tig \ From df01c57c2efa39017e3881252c2abf6145f94dec Mon Sep 17 00:00:00 2001 From: Alban Vidal Date: Sun, 25 Nov 2018 21:20:35 +0100 Subject: [PATCH 2/2] Update auto_config.sh --- auto_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_config.sh b/auto_config.sh index 1992eca..716909e 100755 --- a/auto_config.sh +++ b/auto_config.sh @@ -38,7 +38,7 @@ GIT_DIR="$(realpath ${0%/*})" # Conf file path CONF_FILE="$GIT_DIR/conf" -# Used if parameter id is required - Do not edit +# Used if parameter is required - Do not edit RELOAD_PARAMATER=false ################################################################################