Bonjour
J'ai Créé un script pour pouvoir installer et reinstaller mon serveur
Mais j'ai un problème avec un $ dans le création d'un fichier de config de bind
cat>/etc/bind/db.xxx.xxx.xx.xxx <<EOF
$TTL 3h
@ IN SOA r29734.ovh.net. mathias.pyratek.com. (
2010012202
8H
2H
1W
1D )
@ IN NS r29734.ovh.net.
@ IN MX 10 mail.pyratek.com.
208 IN PTR r29734.ovh.net.
208 IN PTR mail.pyratek.com.
EOF
Le $TTL n'est pas retranscrit par le script dans le fichier db.xxx.xxx.xx.xxx
il prends certainement le $ pour un variable mais comme ca ne correspond a rien et bien il marque rien
j'ai essayer comme ça aussi mais c'est pariel ça ne marque rien ... normal me direz vous
echo"
$TTL 3h
@ IN SOA r29734.ovh.net. mathias.pyratek.com. (
2010012202
8H
2H
1W
1D )
@ IN NS r29734.ovh.net.
@ IN MX 10 mail.pyratek.com.
208 IN PTR r29734.ovh.net.
208 IN PTR mail.pyratek.com." >> /etc/bind/db.xxx.xxx.xx.xxx
Mais alors comment je fais pour mettre un $ sans qu'il soit interprété comme un variable