-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path61script.sh
More file actions
executable file
·58 lines (33 loc) · 1.04 KB
/
61script.sh
File metadata and controls
executable file
·58 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
clear ; read -t 5 -p "PASSO 1: ALTERAR O IP DO NAMESERVER E DO ARQUIVO DE VIRTUALHOST" ;
echo "nameserver 192.168.1.14" > /etc/resolv.conf;
echo "
#
#
<VirtualHost *>
ServerAdmin webmaster@www.edilton.gov.br
ServerName www.edilton.gov.br
ServerAlias edilton.gov.br
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /home/www/html/edilton.gov
</VirtualHost>
" > /etc/apache2/sites-available/www.edilton.gov.br.conf ;
echo "
#
#
<VirtualHost *>
ServerAdmin webmaster@www.edilton.org
ServerName www.edilton.org
ServerAlias www.edilton.org
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /home/www/html/www.edilton.org
</VirtualHost>
" > /etc/apache2/sites-available/www.edilton.org.conf ;
read -t 5 -p "PASSO 5: REATIVAR O SERVIDOR DO APACHE " ;
/etc/init.d/apache2 reload ; read -t 1 -p"";
service apache2 stop; read -t 1 -p "";
service apache2 start;
clear ; read -t 5 -p "FIM" ;
clear ;