Skip to content

Instantly share code, notes, and snippets.

@koke
Created November 24, 2009 13:45
Show Gist options
  • Save koke/241870 to your computer and use it in GitHub Desktop.
Save koke/241870 to your computer and use it in GitHub Desktop.
--- ebox-remoteservices-1.3.10.orig/debian/ebox-remoteservices.postinst
+++ ebox-remoteservices-1.3.10/debian/ebox-remoteservices.postinst
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+#DEBHELPER#
+
+case "$1" in
+ configure)
+ kill `pidof gconfd-2` >/dev/null 2>&1 || true
+
+ # Migrate data if needed
+ /usr/share/ebox/ebox-migrate /usr/share/ebox-remoteservices/migration/
+
+ # Restart eBox apache
+ invoke-rc.d ebox apache restart || true
+
+ ;;
+esac
+
+
+
+exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment