Merge branch 'master' into 'master'

Corrections diverses

See merge request alban.vidal/basic_config_debian!1
This commit is contained in:
Alban Vidal 2018-11-25 21:47:22 +01:00
commit cdc65ca507
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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 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 \