gunnar: server/kolabd/kolabd/namespace/libexec generatefb.in, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Wed Feb 6 10:34:33 CET 2008
Author: gunnar
Update of /kolabrepository/server/kolabd/kolabd/namespace/libexec
In directory doto:/tmp/cvs-serv23611/kolabd/kolabd/namespace/libexec
Added Files:
generatefb.in
Log Message:
Add the generatefc script.
--- NEW FILE: generatefb.in ---
#
# LICENSE
# -------
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Revision: 1.1 $
#
# ABOUT
# -----
#
# This script regenerates the cached free/busy information.
#
#
CLI_USER="manager"
CLI_PASS=""
usage() {
echo "Script for updating freebusy information on a kolab server.";
echo "Normal usage is:";
echo
echo " kolab generatefb [-h] [-u=<manager>] -p=<password>";
echo
echo "Usage:"
echo " -u The IMAP user used for regenerating the cache."
echo " (the default is the manager but you may also "
echo " specify a user name to regenrate just this users"
echo " cache data)"
echo " -p Password for the selected user"
exit 1
}
while getopts hu:p: ARGS; do
case $ARGS in
h) # Display help
usage
;;
u) # User
export CLI_USER="${OPTARG}"
;;
p) # Pass
export CLI_PASS="${OPTARG}"
;;
esac
done
/* Password must be supplied */
if [ -n "CLI_PASS" ]; then
usage();
fi
php -c @sysconfdir@/apache/php.ini @freebusy_confdir@/generatefb.php
More information about the commits
mailing list