lockfile "$LOCK_ACCEPTED"
lockfile "$LOCK_NEW"
+GO=(
+ FUNC="punew"
+ TIME="p-u-new"
+ ARGS="proposedupdates"
+ ERR="false"
+)
+stage $GO
+
GO=(
FUNC="newstage"
TIME="newstage"
state "postlock"
GO=(
- FUNC="pgdump_post"
- TIME="pg_dump2"
+ FUNC="changelogs"
+ TIME="changelogs"
ARGS=""
- ERR=""
+ ERR="false"
)
stage $GO &
GO=(
- FUNC="expire"
- TIME="expire_dumps"
+ FUNC="pgdump_post"
+ TIME="pg_dump2"
ARGS=""
ERR=""
)
stage $GO &
GO=(
- FUNC="reports"
- TIME="reports"
+ FUNC="expire"
+ TIME="expire_dumps"
ARGS=""
ERR=""
)
# )
# stage $GO
+# we need to wait for the background processes before the end of dinstall
+wait
+
log "Daily cron scripts successful, all done"
exec > "$logdir/afterdinstall.log" 2>&1