Joerg Jaspert pushed to branch master at Debian FTP Team / dak
Commits:
-
11aa8056
by Joerg Jaspert at 2018-05-18T15:51:53+02:00
3 changed files:
Changes:
... | ... | @@ -283,12 +283,6 @@ function laststeps() { |
283 | 283 |
# and ensure its no longer used
|
284 | 284 |
exec > "$logdir/after${PROGRAM}.log" 2>&1
|
285 | 285 |
|
286 |
- # If there is a postcronscript function, we run it, if script was successful
|
|
287 |
- postfunc=$(type -t postcronscript || echo "")
|
|
288 |
- if [[ ${successval} -eq 0 ]] && [[ -n ${postfunc} ]] && [[ ${postfunc} = function ]]; then
|
|
289 |
- postcronscript
|
|
290 |
- fi
|
|
291 |
- |
|
292 | 286 |
# Now, at the very (successful) end of this run, make sure we remove
|
293 | 287 |
# our stage files, so the next script run will do it all again.
|
294 | 288 |
if [[ ${successval} -eq 0 ]]; then
|
... | ... | @@ -323,12 +317,6 @@ function laststeps() { |
323 | 317 |
# Get rid of tempfiles at the end
|
324 | 318 |
trap cleanup EXIT TERM HUP INT QUIT
|
325 | 319 |
|
326 |
- # If there is a precronscript function, we run it.
|
|
327 |
- prefunc=$(type -t precronscript || echo "")
|
|
328 |
- if [[ -n ${prefunc} ]] && [[ ${prefunc} = function ]]; then
|
|
329 |
- precronscript
|
|
330 |
- fi
|
|
331 |
- |
|
332 | 320 |
# An easy access by name for the current log
|
333 | 321 |
ln -sf ${LOGFILE} ${logdir}/${PROGRAM}
|
334 | 322 |
|
... | ... | @@ -644,6 +644,5 @@ function startup() { |
644 | 644 |
function postcronscript() {
|
645 | 645 |
trap - ERR
|
646 | 646 |
logstats ${LOGFILE}
|
647 |
- state "all done"
|
|
648 | 647 |
touch "${DINSTALLEND}"
|
649 | 648 |
}
|
... | ... | @@ -53,3 +53,5 @@ i18n2 none i18n\ 2 fal |
53 | 53 |
stats none stats false true
|
54 | 54 |
testingsourcelist none none false true
|
55 | 55 |
cleantransactions none none false false
|
56 |
+postcronscript none none false false
|
|
57 |
+STATE all\ done none false false
|