From 9cfdc3d611ff94dedbed1965eee72dab5eca50be Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 9 Mar 2014 21:54:16 +0000 Subject: [PATCH] --- instalsw.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/instalsw.sh b/instalsw.sh index 94c85e2..1597ed0 100755 --- a/instalsw.sh +++ b/instalsw.sh @@ -19,13 +19,13 @@ apt-get --assume-yes install libapache2-mod-php5 php5 php5-json php5-common php5 apt-get --assume-yes install subversion -svn checkout http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geosaude/ /var/www --username i3geosaude --password i3geosaude --non-interactive +svn checkout "http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geo" /var/www --username i3geosaude --password i3geosaude --non-interactive cd /tmp -wget http://svn.softwarepublico.gov.br/trac/i3geo/export/4449/subgrupos/i3geosaude/databasei3geosaude.backup +mkdir temp -#svn checkout http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geosaude /temp --username i3geosaude --password i3geosaude --non-interactive +svn checkout "http://svn.softwarepublico.gov.br/svn/i3geo/subgrupos/i3geosaude" /tmp/temp --username i3geosaude --password i3geosaude --non-interactive chmod -R u=rw,g=rw,o=rw /var/www @@ -57,6 +57,8 @@ psql -d i3geosaude -c "GRANT ALL ON geography_columns TO PUBLIC;" psql -d i3geosaude -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;" -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --schema-only --list "/tmp/databasei3geosaude.backup" +/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --schema-only --list "/tmp/temp/databasei3geosaude.backup" -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --data-only --list "/tmp/databasei3geosaude.backup" +/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --data-only --list "/tmp/temp/databasei3geosaude.backup" + +rm -Rf /tmp/temp \ No newline at end of file -- libgit2 0.21.2