Skip to content

Commit

Permalink
Adding support for running apt at container init
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoerzen committed Jul 11, 2019
1 parent cc99bd9 commit a39a496
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions preinit/03-security
@@ -0,0 +1,14 @@
#!/bin/bash

set -e

if [ -n "$DEBBASE_NO_STARTUP_APT" ]; then
echo "Running apt daily job at container start..."
/usr/lib/apt/apt.systemd.daily
echo "apt daily job complete; proceeding with container initialization."
fi

# /usr/lib/apt/apt.systemd.daily is called from /etc/cron.daily/apt-compat.
# /lib/systemd/system/apt-daily{,-upgrade}.{service,timer} also call it,
# with arguments to do things in two separate phases. With no args,
# it does everything at once.

0 comments on commit a39a496

Please sign in to comment.