UBUNTUOP=$(shell wget -q -S http://localhost/ubuntu -O /dev/null 2>&1 && echo "--mirror $(LOCALMIRROR)" || echo "--mirror http://archive.ubuntu.com/ubuntu") --debootstrap debootstrap
DEBIANOP=--debootstrapopts --include=apt
ASKPASS=--ask-passphrase
-ASKPASS=
+#ASKPASS=
MAJOR=$(shell head -1 $(PKGDIR)/debian/changelog | sed 's/.*(\(.*\)-[^-]*).*/\1/')
in_svn_repo:= $(wildcard .svn/)
# This is probably not te most elegant way to deal with database
# I install or upgrade on the default cluster if it is online
# or I quit gently with a big message
+ for i in 1 2 3
+ do
+ pg_version_offline=`pg_lsclusters | grep 5432 | grep offline | cut -d' ' -f1`
+ if [ "x$pg_version" != "x" ]
+ then
+ invoke-rc.d postgresql-$pg_version start
+ sleep $i
+ fi
+ done
pg_version=`pg_lsclusters | grep 5432 | grep online | cut -d' ' -f1`
if [ "x$pg_version" != "x" ]
then