summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2-server.postinst
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2009-11-05 22:08:58 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2009-11-05 22:08:58 +0000
commit915f6ce26efa2346251310bba72597af81c80424 (patch)
tree0856f7a0cb173a1e7d660d272832dc2853127bb0 /debian/bcfg2-server.postinst
parent53f51c35462072f7ff17fb772783ac03a0deca06 (diff)
downloadbcfg2-915f6ce26efa2346251310bba72597af81c80424.tar.gz
bcfg2-915f6ce26efa2346251310bba72597af81c80424.tar.bz2
bcfg2-915f6ce26efa2346251310bba72597af81c80424.zip
Now restarts after initial install and upgrade, as requested by desai. For some reason the debian tools are doing the wrong thing, so put in restart code after the autogenerated code - see comments for more details.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5550 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2-server.postinst')
-rw-r--r--debian/bcfg2-server.postinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/bcfg2-server.postinst b/debian/bcfg2-server.postinst
index 260a821d0..2fea3d9c1 100644
--- a/debian/bcfg2-server.postinst
+++ b/debian/bcfg2-server.postinst
@@ -40,6 +40,17 @@ esac
#DEBHELPER#
+# We do a restart manually here because with autogenerated code
+# we get this traceback (eg something isn't done yet):
+## Setting up bcfg2-server (1.0.0~rc3+r5542-0.1+dctest8) ...
+## Starting Configuration Management Server: Traceback (most recent call last):
+## File "/usr/sbin/bcfg2-server", line 12, in <module>
+## import Bcfg2.Server.Plugins.Metadata
+## ImportError: No module named Server.Plugins.Metadata
+## * bcfg2-server
+echo "Restarting bcfg2-server after initial install or upgrade..."
+/etc/init.d/bcfg2-server restart
+
exit 0