Commit 9cfdc3d611ff94dedbed1965eee72dab5eca50be
1 parent
1f61fcf6
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
instalsw.sh
... | ... | @@ -19,13 +19,13 @@ apt-get --assume-yes install libapache2-mod-php5 php5 php5-json php5-common php5 |
19 | 19 | |
20 | 20 | apt-get --assume-yes install subversion |
21 | 21 | |
22 | -svn checkout http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geosaude/ /var/www --username i3geosaude --password i3geosaude --non-interactive | |
22 | +svn checkout "http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geo" /var/www --username i3geosaude --password i3geosaude --non-interactive | |
23 | 23 | |
24 | 24 | cd /tmp |
25 | 25 | |
26 | -wget http://svn.softwarepublico.gov.br/trac/i3geo/export/4449/subgrupos/i3geosaude/databasei3geosaude.backup | |
26 | +mkdir temp | |
27 | 27 | |
28 | -#svn checkout http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geosaude /temp --username i3geosaude --password i3geosaude --non-interactive | |
28 | +svn checkout "http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geosaude" /tmp/temp --username i3geosaude --password i3geosaude --non-interactive | |
29 | 29 | |
30 | 30 | chmod -R u=rw,g=rw,o=rw /var/www |
31 | 31 | |
... | ... | @@ -57,6 +57,8 @@ psql -d i3geosaude -c "GRANT ALL ON geography_columns TO PUBLIC;" |
57 | 57 | |
58 | 58 | psql -d i3geosaude -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;" |
59 | 59 | |
60 | -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --schema-only --list "/tmp/databasei3geosaude.backup" | |
60 | +/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --schema-only --list "/tmp/temp/databasei3geosaude.backup" | |
61 | 61 | |
62 | -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --data-only --list "/tmp/databasei3geosaude.backup" | |
62 | +/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --data-only --list "/tmp/temp/databasei3geosaude.backup" | |
63 | + | |
64 | +rm -Rf /tmp/temp | |
63 | 65 | \ No newline at end of file | ... | ... |