source: bootcd/fixappliance @ f9ce31e

perl-5.22
Last change on this file since f9ce31e was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 544 bytes
Line 
1#!/bin/bash
2
3BOX=$1
4
5echo "Vergeet niet een firewall rule toe te voegen die alles toestaat vanaf 'internet', met commentaar dat men deze moet weghalen!"
6
7echo "$BOX word voorbereid als (vmware)appliance..."
8
9
10
11ssh root@$BOX "
12    rm /etc/webint/{UUID,REG,WIZARD_COMPLETED}
13    rm -r ~/.ssh
14    echo 'en' > /etc/webint/LANG
15    rm /etc/ssh/ssh_host_*
16    rm /usr/webint/ssl/*
17    echo > /etc/network/gateway.conf
18    echo '1,dhcp,,0' > /etc/network/adaptor.conf
19    echo root:syn3 |chpasswd   
20   
21" || exit 1
22
23
24echo "Sluit af en blijf af :D"
Note: See TracBrowser for help on using the repository browser.