Commit e99e769e authored by Andreas Tille's avatar Andreas Tille

In principle this deactivated script can be removed

parent 01ba8261
#!/bin/sh
cat <<EOT
The web sentinel is not running on alioth any more but rather at
The web sentinel is not running
http://blends.debian.org
Since the access to blends.debian.org is restricted to DDs only and
not simply to alioth team members the triggering of regeneration of
the tasks pages can not be done as before with this script.
the tasks pages is done by a cron job (website/check-all-tasks).
It is installed on blends.debian.org which every five minutes checks
for updates in a certain Blend.
As an exchange a cron job (website/check-all-tasks) will be installed
on blends.debian.org which every five minutes checks for updates in
a certain Blend. Currently this job is tested at
http://blends.debian.net
Just check there after any updates of your tasks files.
EOT
exit
usage () {
cat <<EOT
Usage: $0 [options] <blend>
Description: Update web sentinel parts on alioth.debian.org
Options:
-a|--all tasks + bugs + thermometer
-t|--tasks tasks pages (default)
-b|--bugs bugs pages
-r|--thermometer thermometer
There is no point in running this script any more.
EOT
}
do_update () {
if [ "$1" = "bugs" ] ; then
echo "$0: For technical reasons currently the generation of Bugs pages is prevented. Please ask Andreas Tille <tille@debian.org> for details."
return
fi
ssh "$HOST" "cd /srv/home/groups/blends/webtools; ./$1.py ${BLEND}"
# Hmmm, this seems to always return non-zero
#if [ "$?" != "0" ]; then
# echo "$0: Unable to update $1. Did you used ssh-agent before this command?"
# exit 1
#fi
rsync -a ${HOST}:/srv/home/groups/blends/webtools/logs/$2 .
if [ "$?" != "0" ]; then
echo "$0: Unable to update $1. Did you used ssh-agent before this command?"
exit 1
fi
}
if [ $# -lt 1 ] ; then
usage
exit 1
fi
# per default create tasks pages
dotasks='yes'
HOST=alioth.debian.org
while echo "$1" | grep -q ^- ; do
case "$1" in
"-a"|"--all")
dotasks='yes'
dobugs='yes'
dothermometer='yes'
;;
"-t"|"--tasks")
dotasks='yes'
;;
"-b"|"--bugs")
dobugs='yes'
dotasks='no'
;;
"-r"|"--thermometer")
dothermometer='yes'
dotasks='no'
;;
"-h"|"--host")
shift
HOST=$1
if [ "$HOST" = "" ] ; then
echo "$0: --host option requires parameter"
usage
exit 1
fi
;;
*)
echo "$0: Unknown option $1."
usage
exit 1
;;
esac
shift
done
BLEND="$1"
if [ "$BLEND" = "" ] ; then
echo "$0: Missing <blend> parameter."
usage
exit 1
fi
#echo HOST = $HOST
#echo dotasks = $dotasks
#echo dobugs = $dobugs
#echo dothermometer = $dothermometer
#echo BLEND = $BLEND
if [ "$dotasks" = "yes" ] ; then
do_update tasks "${BLEND}.log"
fi
if [ "$dobugs" = "yes" ] ; then
do_update bugs "${BLEND}_bugs.*"
fi
if [ "$dothermometer" = "yes" ] ; then
do_update thermometer "${BLEND}_thermometer.*"
fi
# FIXME: Remove this unused script
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment