~ubuntu-branches/ubuntu/dapper/php5/dapper-proposed

« back to all changes in this revision

Viewing changes to debian/maxlifetime

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-5agt5xkcnt5q2kmt
Tags: 5.0.5-2ubuntu1
Resync with Debian, bringing in two security fixes, a file conflict fix,
and two 64-bit memory corruption and segfault fixes (no other changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
max=1440
 
4
 
 
5
for ini in /etc/php5/*/php.ini; do
 
6
        cur=$(sed -n -e 's/^[[:space:]]*session.gc_maxlifetime[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p' $ini 2>/dev/null || true);
 
7
        [ -z "$cur" ] && cur=0
 
8
        [ "$cur" -gt "$max" ] && max=$cur
 
9
done
 
10
 
 
11
echo $(($max/60))
 
12
 
 
13
exit 0