Corrections diverses
This commit is contained in:
parent
aaf33fb4b3
commit
8a9b7b1caf
@ -1,9 +1,9 @@
|
|||||||
Basic config for Debian
|
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
|
+ Install git and tig
|
||||||
+ Set git username and email
|
+ Set git username and email
|
||||||
@ -17,7 +17,7 @@ The following component are configured:
|
|||||||
+ Send alert email for new ssh connexion
|
+ Send alert email for new ssh connexion
|
||||||
+ Set Time Zone (see parameters.conf to edit, default "Europe/Paris")
|
+ 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
|
```bash
|
||||||
apt install git
|
apt install git
|
||||||
@ -27,7 +27,7 @@ cd /srv/git/basic_config_debian
|
|||||||
./auto_config.sh
|
./auto_config.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## New aliases and functions available
|
## New aliases and available functions
|
||||||
|
|
||||||
### Hard drive
|
### Hard drive
|
||||||
+ `hddtop`: print hard drive usage
|
+ `hddtop`: print hard drive usage
|
||||||
|
@ -38,7 +38,7 @@ GIT_DIR="$(realpath ${0%/*})"
|
|||||||
# Conf file path
|
# Conf file path
|
||||||
CONF_FILE="$GIT_DIR/conf"
|
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
|
RELOAD_PARAMATER=false
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -65,7 +65,7 @@ function func_read_param() {
|
|||||||
RELOAD_PARAMATER=true
|
RELOAD_PARAMATER=true
|
||||||
}
|
}
|
||||||
|
|
||||||
# List names of parameter variables and description of parameter
|
# List names of variables's parameter and their description
|
||||||
LIST_PARAM="
|
LIST_PARAM="
|
||||||
UNATTENDED_EMAIL Unattended email alert
|
UNATTENDED_EMAIL Unattended email alert
|
||||||
GIT_USERNAME Git username
|
GIT_USERNAME Git username
|
||||||
@ -88,7 +88,7 @@ if [ -f $CONF_FILE ] ;then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
# Conf file does not exist
|
# Conf file doesn't exist
|
||||||
touch $CONF_FILE # Create empty conf file
|
touch $CONF_FILE # Create empty conf file
|
||||||
# For all variable, do request it
|
# For all variable, do request it
|
||||||
for DETAIL_PARAM in $LIST_PARAM ;do
|
for DETAIL_PARAM in $LIST_PARAM ;do
|
||||||
@ -109,7 +109,7 @@ fi
|
|||||||
# Update packages list
|
# Update packages list
|
||||||
apt-get update --quiet=2
|
apt-get update --quiet=2
|
||||||
|
|
||||||
# Install the packages
|
# Install packages
|
||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
git \
|
git \
|
||||||
tig \
|
tig \
|
||||||
|
Loading…
Reference in New Issue
Block a user