debian/cubicweb-server.prerm
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 08 Apr 2013 16:19:29 +0200
branchstable
changeset 8869 a46197b1696f
parent 0 b97547f5f1fa
permissions -rw-r--r--
[webconfig] fallback to default configs if https ones are not defined When cubicweb serves a request with an https scheme, it tries to access ``https_uiprops`` and ``https_datadir_urls``. However if those are not defined we should fallback to unsecure url instead of crashing with a traceback. There are very valid usecases for undefined https url. For example if your ``base_url``, ``datadir_url`` and uiprops content are already https urls. Closes #2786643

#! /bin/sh -e
 
case "$1" in
    remove)
	if [ -x "/etc/init.d/cubicweb-ctl" ]; then
	    invoke-rc.d cubicweb-ctl stop || true
	fi
    ;;
esac
 
#DEBHELPER#
 
exit 0