Commit 0efe728b3aa52bb8fc0128d838e5a2a43d977734
1 parent
67a5d204
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
0 additions
and
65 deletions
Show diff stats
instalsw.sh
... | ... | @@ -1,65 +0,0 @@ |
1 | -#!/bin/sh | |
2 | -echo | |
3 | -echo "instala as dependencias e i3geo em uma distribuicao nova" | |
4 | -echo "nao rode em uma instalacao que ja contem o i3geo" | |
5 | -echo "sudo ./instalasw.sh" | |
6 | -echo "wget http://edmarmoretti.com.br/i3geo/instalsw.sh" | |
7 | - | |
8 | -echo "===============================================================" | |
9 | - | |
10 | -apt-get --assume-yes install apache2 apache2-doc apache2-utils | |
11 | - | |
12 | -apt-get --assume-yes install cgi-mapserver mapserver-bin | |
13 | - | |
14 | -apt-get --assume-yes install postgresql postgis postgresql-9.1-postgis pgadmin3 | |
15 | - | |
16 | -apt-get --assume-yes install sqlite | |
17 | - | |
18 | -apt-get --assume-yes install r-base r-base-core r-cran-maptools | |
19 | - | |
20 | -apt-get --assume-yes install libapache2-mod-php5 php5 php5-json php5-common php5-curl php5-dev php5-gd php5-mapscript php5-odbc php5-pgsql php5-ps php5-xmlrpc php5-xsl php5-sqlite php5-imagick | |
21 | - | |
22 | -apt-get --assume-yes install subversion | |
23 | - | |
24 | -apt-get clean | |
25 | - | |
26 | -svn checkout "http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geo" /var/www --username i3geosaude --password i3geosaude --non-interactive | |
27 | - | |
28 | -cd /tmp | |
29 | - | |
30 | -mkdir temp | |
31 | - | |
32 | -svn checkout "http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geosaude" /tmp/temp --username i3geosaude --password i3geosaude --non-interactive | |
33 | - | |
34 | -chmod -R u=rw,g=rw,o=rw /var/www | |
35 | - | |
36 | -mkdir /tmp/ms_tmp | |
37 | - | |
38 | -chmod -R u=rw,g=rw,o=rw /tmp/ms_tmp | |
39 | - | |
40 | -ln -s /tmp/ms_tmp /var/www/ms_tmp | |
41 | - | |
42 | -chmod -R u=rw,g=rw,o=rw /var/www/ms_tmp | |
43 | - | |
44 | -su postgres -c "psql -c \"ALTER USER postgres WITH PASSWORD 'postgres'\"" | |
45 | - | |
46 | -su postgres -c "createdb i3geosaude" | |
47 | - | |
48 | -su postgres -c "createlang -d i3geosaude plpgsql" | |
49 | - | |
50 | -su postgres -c "psql -d i3geosaude -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql" | |
51 | - | |
52 | -su postgres -c "psql -d i3geosaude -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql" | |
53 | - | |
54 | -su postgres -c "psql -d i3geosaude -c 'GRANT ALL ON geometry_columns TO PUBLIC;'" | |
55 | - | |
56 | -su postgres -c "psql -d i3geosaude -c 'GRANT ALL ON geography_columns TO PUBLIC;'" | |
57 | - | |
58 | -su postgres -c "psql -d i3geosaude -c 'GRANT ALL ON spatial_ref_sys TO PUBLIC;'" | |
59 | - | |
60 | -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --schema-only --list "/var/www/databasei3geosaude.backup" | |
61 | - | |
62 | -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --data-only --list "/var/www/databasei3geosaude.backup" | |
63 | - | |
64 | - | |
65 | -rm -Rf /tmp/temp | |
66 | 0 | \ No newline at end of file |