diff options
Diffstat (limited to 'debian/bcfg2-server.postinst')
-rw-r--r-- | debian/bcfg2-server.postinst | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/debian/bcfg2-server.postinst b/debian/bcfg2-server.postinst index 586263152..2f65fe847 100644 --- a/debian/bcfg2-server.postinst +++ b/debian/bcfg2-server.postinst @@ -42,17 +42,19 @@ esac # We do a restart manually here because with autogenerated code # we get this traceback (eg something isn't done yet): +# This happens due to debhelper bug #546293, fixed in version 7.4.2. ## 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 -case "$1" in - configure) - echo "Restarting bcfg2-server after initial install or upgrade..." - /etc/init.d/bcfg2-server restart - ;; -esac +if [ -x "/etc/init.d/bcfg2-server" ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d bcfg2-server start || exit $? + else + /etc/init.d/bcfg2-server start || exit $? + fi +fi exit 0 |