debian/cron.daily: run only if wcsctl is present
This commit is contained in:
parent
7aaaaf4c82
commit
edfcd360cd
|
@ -1,10 +1,11 @@
|
|||
#! /bin/sh
|
||||
set -e
|
||||
if [ -x /usr/sbin/wcsctl ]; then
|
||||
NAME=wcs
|
||||
if [ -r /etc/default/$NAME ]; then
|
||||
. /etc/default/$NAME
|
||||
fi
|
||||
|
||||
NAME=wcs
|
||||
if [ -r /etc/default/$NAME ]
|
||||
then
|
||||
. /etc/default/$NAME
|
||||
/usr/sbin/wcsctl clean_sessions
|
||||
fi
|
||||
|
||||
/usr/sbin/wcsctl clean_sessions
|
||||
|
||||
|
|
Loading…
Reference in New Issue