commit | author | age
|
532ae5
|
1 |
#!/bin/bash |
L |
2 |
set -x |
|
3 |
echo "" > /etc/resolv.conf |
|
4 |
echo "" > /etc/hostname |
|
5 |
echo "" > /etc/mailname |
|
6 |
rm -f /etc/ssh/ssh_host_* |
|
7 |
cat << EOF > /etc/rc2.d/S15ssh_gen_host_keys |
|
8 |
#!/bin/bash |
|
9 |
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N '' |
|
10 |
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N '' |
|
11 |
dpkg-reconfigure -u webalizer |
|
12 |
postconf -e "myhostname = $(hostname -f)" |
|
13 |
postconf -e "mydestination = $(hostname -f), localhost" |
|
14 |
echo $(hostname -f) > /etc/mailname |
|
15 |
dpkg-reconfigure -u postfix |
|
16 |
rm -f \$0 |
|
17 |
EOF |
|
18 |
chmod a+x /etc/rc2.d/S15ssh_gen_host_keys |