Skip to content
Newer
Older
100644 36 lines (32 sloc) 1.21 KB
b31a690 @jonjensen Move DEV_4_7_0 development branch to repository trunk.
jonjensen authored Jul 18, 2001
1 #! /bin/sh
2 #
3 # cron script to expire sessions
4 #
60d73cb @racke check for existence of binary first
racke authored Feb 3, 2004
5 # Copyright 2000,2001,2004 by Stefan Hornburg (Racke) <racke@linuxia.de>
b31a690 @jonjensen Move DEV_4_7_0 development branch to repository trunk.
jonjensen authored Jul 18, 2001
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public
18 # License along with this program; if not, write to the Free
07f71a7 @pajamian New Free Software Foundation Address in headers of various files
pajamian authored Mar 30, 2007
19 # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
20 # MA 02110-1301 USA.
b31a690 @jonjensen Move DEV_4_7_0 development branch to repository trunk.
jonjensen authored Jul 18, 2001
21
60d73cb @racke check for existence of binary first
racke authored Feb 3, 2004
22 if [ ! -x /usr/lib/interchange/bin/expireall ] ; then
23 # package probably removed
24 exit 0
25 fi
26
b31a690 @jonjensen Move DEV_4_7_0 development branch to repository trunk.
jonjensen authored Jul 18, 2001
27 # only accept value from /etc/interchange/init.cfg
28 USER=
29 . /etc/interchange/init.cfg
30
31 if /usr/bin/id "$USER" >/dev/null; then
32 su "$USER" -s /bin/sh -c '/usr/lib/interchange/bin/expireall -f /etc/interchange/interchange.cfg -r'
33 else
34 echo "interchange user missing from /etc/interchange/init.cfg or not existing"
35 fi
Something went wrong with that request. Please try again.