# Prepare database
su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/gforge/bin/register-plugin scmgit "Git"'
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/gforge/plugins/scmgit/bin/db-upgrade.pl'
;;
abort-upgrade|abort-remove|abort-deconfigure)
if [ -f /var/run/postgresql/.s.PGSQL.5432 ]
then
/usr/share/@OLDPACKAGE@/bin/unregister-plugin scmgit
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/gforge/plugins/scmgit/bin/db-delete.pl'
else
echo "WARNING: database not available to unregister scmgit plugin"
fi
-plugins/scmgit/common/* usr/share/gforge/plugins/scmgit/common/
-plugins/scmgit/etc/plugins/scmgit/* etc/gforge/plugins/scmgit/
+plugins/scmgit/bin/* usr/share/gforge/plugins/scmgit/bin/
+plugins/scmgit/common/* usr/share/gforge/plugins/scmgit/common/
+plugins/scmgit/db/* usr/share/gforge/plugins/scmgit/lib/
+plugins/scmgit/etc/plugins/scmgit/* etc/gforge/plugins/scmgit/
+
+
#
# Debian-specific script to upgrade the database between releases
# Roland Mas <lolando@debian.org>
-#
-# Adapted by Raphael Hertzog <hertzog@debian.org> for extratabs
use strict ;
use diagnostics ;
# debug "Connected to the database OK." ;
-$pluginname = "extratabs" ;
+$pluginname = "scmgit" ;
$dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;