[DebianGIS-dev] r1768 - packages/debian-gis/hooks
nd-guest at alioth.debian.org
nd-guest at alioth.debian.org
Wed Sep 10 20:34:20 UTC 2008
Author: nd-guest
Date: 2008-09-10 20:34:20 +0000 (Wed, 10 Sep 2008)
New Revision: 1768
Modified:
packages/debian-gis/hooks/10-default
packages/debian-gis/hooks/20-osm
Log:
always return true in hook scripts
Modified: packages/debian-gis/hooks/10-default
===================================================================
--- packages/debian-gis/hooks/10-default 2008-09-10 20:31:28 UTC (rev 1767)
+++ packages/debian-gis/hooks/10-default 2008-09-10 20:34:20 UTC (rev 1768)
@@ -7,4 +7,6 @@
aptitude remove --purge $(deborphan)
# run updatedb
-updatedb
+updatedb
+
+exit 0
Modified: packages/debian-gis/hooks/20-osm
===================================================================
--- packages/debian-gis/hooks/20-osm 2008-09-10 20:31:28 UTC (rev 1767)
+++ packages/debian-gis/hooks/20-osm 2008-09-10 20:34:20 UTC (rev 1768)
@@ -7,23 +7,22 @@
if [ ! -f "$planet" ]; then
echo "No planet file found!"
- exit 1
+ exit 0
fi
if [ ! -x /usr/bin/osm2pgsql ]; then
echo "osm2pgsql not installed!"
- exit 1
+ exit 0
fi
-/etc/init.d/postgresql-8.2 start
+/etc/init.d/postgresql-8.3 start
sudo -u postgres createuser -Upostgres -S -D -R gis
sudo -u postgres createdb -Upostgres -EUNICODE gis
echo GRANT ALL ON SCHEMA PUBLIC TO gis | sudo -u postgres psql -Upostgres gis
sudo -u postgres createlang -Upostgres plpgsql gis
-sudo -u postgres psql gis < /usr/share/postgresql-8.2-postgis/lwpostgis.sql
+sudo -u postgres psql gis < /usr/share/postgresql-8.3-postgis/lwpostgis.sql
echo GRANT ALL ON geometry_columns TO gis | sudo -u postgres psql -Upostgres gis
echo GRANT ALL ON spatial_ref_sys TO gis | sudo -u postgres psql -Upostgres gis
sudo -u postgres /usr/bin/osm2pgsql $planet
-/etc/init.d/postgresql-8.2 stop
+/etc/init.d/postgresql-8.3 stop
rm -f "$planet"
-
-
+exit 0
More information about the Pkg-grass-devel
mailing list