# Timestamp. Used for dinstall stat graphs
function ts() {
- TS=$(($TS+1));
- echo "Archive maintenance timestamp $TS ($1): $(date +%H:%M:%S)"
+ echo "Archive maintenance timestamp ($1): $(date +%H:%M:%S)"
}
# Cleanup actions
dak control-suite -l testing > squeeze
dak control-suite -l unstable > sid
echo "${STAMP}" > timestamp
- gpg --secret-keyring /srv/ftp.debian.org/s3kr1t/dot-gnupg/secring.gpg --keyring /srv/ftp.debian.org/s3kr1t/dot-gnupg/pubring.gpg --no-options --batch --no-tty --armour --default-key 6070D3A1 --detach-sign -o timestamp.gpg timestamp
+ gpg --secret-keyring /srv/ftp.debian.org/s3kr1t/dot-gnupg/secring.gpg --keyring /srv/ftp.debian.org/s3kr1t/dot-gnupg/pubring.gpg --no-options --batch --no-tty --armour --default-key 55BE302B --detach-sign -o timestamp.gpg timestamp
rm -f md5sum
md5sum * > md5sum
cd ${webdir}/
# members
# - FUNC - the function name to call
# - ARGS - Possible arguments to hand to the function. Can be the empty string
-# - TS - The timestamp name. Can be the empty string
+# - TIME - The timestamp name. Can be the empty string
# - ERR - if this is the string false, then the call will be surrounded by
# set +e ... set -e calls, so errors in the function do not exit
# dinstall. Can be the empty string, meaning true.
return
fi
- debug "Now calling function ${FUNC}. Arguments: ${ARGS}. Timestamp: ${TS}"
+ debug "Now calling function ${FUNC}. Arguments: ${ARGS}. Timestamp: ${TIME}"
# Make sure we are always at the same place. If a function wants to be elsewhere,
# it has to cd first!
# Marker for dinstall end
DINSTALLEND="${lockdir}/dinstallend"
-# Timestamps start at -1. so first gets 0
-TS=-1
touch "${DINSTALLSTART}"
ts "startup"
ARGS=""
ERR="false"
)
-stage $GO
+stage $GO &
GO=(
FUNC="pgdump_pre"
ARGS=""
ERR="false"
)
-stage $GO
+stage $GO &
GO=(
FUNC="aptftpcleanup"