- Correctif installer
This commit is contained in:
parent
be17f170fb
commit
4b9d17b9ad
15
TODO.md
15
TODO.md
|
|
@ -7,11 +7,11 @@
|
|||
> /etc/hostname (changer le nom de la machine)
|
||||
> /etc/msmtprc (conf des mails)
|
||||
|
||||
|
||||
- espace en trop PS1
|
||||
|
||||
# SCRIPT INSTALL
|
||||
- faire la connexion git sans faire pass a chaque fois en script
|
||||
- pour la conf du firewall recharger les ancien et proposer les nouveau et supprimer les anciens possible
|
||||
+ des services
|
||||
|
||||
|
||||
# GITEA
|
||||
- faire le redirect port 80
|
||||
|
|
@ -25,4 +25,13 @@
|
|||
- config ndv
|
||||
- config gita
|
||||
|
||||
NETTOYER /ETC/MOTD
|
||||
/etc/update-motd.d/
|
||||
|
||||
# git
|
||||
> clone un depot si il y a deja des fichiers
|
||||
git init
|
||||
git remote add origin <url>
|
||||
git fetch
|
||||
git reset --hard origin/main
|
||||
git clean -fd
|
||||
|
|
@ -198,17 +198,20 @@ do_deb_sys_zabbix(){
|
|||
$SUDO apt-get install -y zabbix-agent;
|
||||
$SUDO sed -i "s/^Server=127.0.0.1/Server=$ip/" /etc/zabbix/zabbix_agentd.conf;
|
||||
$SUDO systemctl restart zabbix-agent
|
||||
msg_success "Zabbix agent configuré."
|
||||
}
|
||||
|
||||
do_deb_sys_ipv6(){
|
||||
echo "net.ipv6.conf.all.disable_ipv6 = 1" | $SUDO tee -a /etc/sysctl.conf > /dev/null && $SUDO sysctl -p
|
||||
msg_success "IP V6 désactivée"
|
||||
}
|
||||
|
||||
do_deb_sys_env_mail(){
|
||||
do_deb_sys_mail(){
|
||||
read -rp "Mail admin : " m;
|
||||
echo "ADMIN_MAIL=\"$m\"" | $SUDO tee -a /etc/environment > /dev/null
|
||||
# shellcheck disable=SC2034
|
||||
ADMIN_MAIL=$m
|
||||
msg_success "ADMIN_MAIL configuré avec $m"
|
||||
}
|
||||
|
||||
do_deb_sys_static_ip() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue