On Thu, Jul 17, 2014 at 9:11 AM, Brian May wrote:

> Anyone got any better ideas?

Something like this for the configuration:

/etc/apache2/conf-available/someconf-2.x.conf:
# All the common config options here

/etc/apache2/conf-available/someconf-2.2.conf:
Allow from all
Include /etc/apache2/conf-available/someconf-2.x.conf

/etc/apache2/conf-available/someconf-2.4.conf:
Require all granted
Include /etc/apache2/conf-available/someconf-2.x.conf

Something like this for the postinst:

if [ -x /usr/sbin/a2enconf ] ; then
  a2enconf someconf-2.4
else
  ln -sf ../conf-available/someconf-2.2.conf
/etc/apache2/conf.d/someconf-2.2.conf
fi

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAKTje6ENy03=8CJar-TtPVTpoSNAmgx0EbpTZ59iefQRd=w...@mail.gmail.com

Reply via email to