scripts/postinstall.sh

21 lines
1.4 KiB
Bash
Raw Normal View History

2014-09-13 21:23:13 +02:00
echo "ssh-dss AAAAB3NzaC1kc3MAAACBAJYazE4nQN4m74E0OC9Ex863x+rRADt9hJRQAixNSMwNPAilfQ0/pt0z4UXZjuKC6aRhWeIQOkof3sXzy04S5QgQY5jAB5rH1J+06QiU6opFcd3IGtnoHST1HSY4FyV6EFbamm8ad/oNrlWCMXYSCHgMGdwmVYzoSjPcgJ7eTHz3AAAAFQDBZV2VSIQwKDjY9uWcNU9CVhe8WwAAAIApm2KB2zGxXwwR6tcuKFcP6uvvZAbTKT/nGDGgADncjFb8DC3MDzwetDA9N0kqtrdRzu4GYYsXOMyTyP/RJQwF4rPF7PKFaB70F0a3knPlZX09ML8EE9L3BD0RvPEfLWY3OzZ9SHWcfEWphgIX9WpTUaWdmqSO0Txii/8FU2yb7gAAAIA7Y/zsTbNO/FNunGSBOg+4NqvbkU6cLuVDty81p7wXlfazhtKPzP5R8L1ReaKavGABwMzCi/4S/QnHLP2C/UW6nUi5Fh53PPRZI+6mam2WIlLWYv5eQZBEDLsxQsk/htSomu8oEilXODfDo7qbRQ5rKVcN5VmKaxIqoEtTN1bWjQ== n@big">>/root/.ssh/authorized_keys2
umount /servers/
zpool create -f servers ad4s1e
zfs create servers/ftp
zfs create servers/web
zfs create servers/mail
zfs create servers/db
zfs create servers/dns
2014-09-13 22:39:44 +02:00
fetch ftp://ftp1.freebsd.org/pub/FreeBSD/releases/amd64/8.2-RELEASE/src.txz
fetch ftp://ftp1.freebsd.org/pub/FreeBSD/releases/amd64/8.2-RELEASE/ports.txz
tar -C / -xvzf src.txz
tar -C / -xvzf ports.txz
cd /usr/ports/shells/zsh/ && make -DBATCH clean install
cd /usr/ports/security/ipsec-tools/ && make -DBATCH clean install
cd /usr/ports/editors/vim-lite/ && make -DBATCH clean install
cd /usr/ports/sysutils/rdiff-backup/ && make -DBATCH clean install
cd /usr/ports/sysutils/ezjail/ && make -DBATCH clean install
2014-09-13 21:23:13 +02:00
pkg_add -r zsh ipsec-tools rdiff-backup ezjail openvpn 3proxy
print OK
return OK