- Correctif installer

This commit is contained in:
Frogg 2026-05-08 00:17:53 +02:00
parent be17f170fb
commit 4b9d17b9ad
2 changed files with 16 additions and 4 deletions

15
TODO.md
View File

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

View File

@ -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() {