export LANG=C
export LC_ALL=C
+# If we did not install new packages, we dont want to run.
+if ! [ -f "${DINSTALLPACKAGES}" ]; then
+ log "nothing to do"
+ exit 0
+fi
+rm -f "${DINSTALLPACKAGES}"
+
touch "${DINSTALLSTART}"
ts "startup"
DINSTALLBEGIN="$(date -u +"%a %b %d %T %Z %Y (%s)")"
)
stage $GO &
-GO=(
- FUNC="reports"
- TIME="reports"
- ARGS=""
- ERR=""
-)
-stage $GO &
-
# GO=(
# FUNC="dm"
# TIME=""
)
stage $GO &
-GO=(
- FUNC="aptftpcleanup"
- TIME="apt-ftparchive cleanup"
- ARGS=""
- ERR="false"
-)
-stage $GO
+# GO=(
+# FUNC="aptftpcleanup"
+# TIME="apt-ftparchive cleanup"
+# ARGS=""
+# ERR="false"
+# )
+# stage $GO
+
+# we need to wait for the background processes before the end of dinstall
+wait
log "Daily cron scripts successful, all done"