[slbackup-commit] CVS update: slbackup-php/debian changelog postinst

pwinnertz-guest at alioth.debian.org pwinnertz-guest at alioth.debian.org
Tue Apr 17 20:40:43 UTC 2007


  User: pwinnertz-guest
  Date: 07/04/17 20:40:43

  Modified:    debian   changelog postinst
  Log:
  Added mod_rewrite load to postinst
  
  Revision  Changes    Path
  1.17      +1 -0      slbackup-php/debian/changelog
  
  Index: changelog
  ===================================================================
  RCS file: /cvsroot/slbackup/slbackup-php/debian/changelog,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- changelog	17 Apr 2007 20:34:46 -0000	1.16
  +++ changelog	17 Apr 2007 20:40:43 -0000	1.17
  @@ -19,6 +19,7 @@
     * Removed prerm since we don't need it to a2dissite slbackup-php
     * Removed some debconf stuff from postinst since we doesn't use it 
       at all
  +  * Added some stuff to postinst to load the apache module mod_rewrite
   
    -- Patrick Winnertz <patrick.winnertz at skolelinux.org>  Tue, 17 Apr 2007 22:04:12 +0200
   
  
  
  
  1.4       +9 -0      slbackup-php/debian/postinst
  
  Index: postinst
  ===================================================================
  RCS file: /cvsroot/slbackup/slbackup-php/debian/postinst,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- postinst	17 Apr 2007 20:09:43 -0000	1.3
  +++ postinst	17 Apr 2007 20:40:43 -0000	1.4
  @@ -2,6 +2,15 @@
   
   set -e
   
  +if  [ -x /usr/sbin/a2enmod ] && [ -L /etc/apache2/mods-enabled/ssl.conf ]; then
  +        /usr/sbin/a2enmod rewrite > /dev/null
  +        if [ -x /usr/sbin/invoke-rc.d ] ; then
  +                /usr/sbin/invoke-rc.d apache2 force-reload || :
  +        else
  +                [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 force-reload || :
  +        fi
  +fi
  +
   mkdir -p /var/spool/slbackup-php
   
   if [ -d /var/spool/slbackup-php ]; then
  
  
  



More information about the slbackup-commit mailing list