Commit b4c37a6e authored by Antoine Millet's avatar Antoine Millet
Browse files

Added a workaround in debian package to fix restart after upgrade

parent c4e31348
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -46,4 +46,14 @@ esac

#DEBHELPER#

# Workaround to restart cc-server after pycentral
if [ -x "/etc/init.d/cc-server" ]; then
    update-rc.d cc-server defaults >/dev/null
    if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
        invoke-rc.d cc-server start || exit $?
    else
        /etc/init.d/cc-server start || exit $?
    fi
fi

exit 0