Compare commits
base: contradict:master
contradict:master
contradict:missing-apt-list
contradict:haproxy-dualstack
contradict:ander/__sed
contradict:beta
contradict:6.9
contradict:ander/os_version_debian_sid
contradict:evilham-compatibility-fixes
contradict:ander/__rsync
contradict:__snakeoil_cert
contradict:ander/update_readme
contradict:__download_improvements
contradict:feature/onchange
contradict:cleanup/string-formatting
contradict:feature/type-relationship-graph
contradict:cleanup/ssh-auth-keys-types
contradict:__letsencrypt_cert-fix-hooks
contradict:bugfix/preos-debug
contradict:bugfix/in-script-import
contradict:6.8
contradict:bugfix/sphinx-docs-build
contradict:6.7
contradict:cherry-pick-2f433a14
contradict:bugfix/make-code-consistent
contradict:6.6
contradict:regain-py3.2-support
contradict:6.5
contradict:bugfix/multiple-log-lines
contradict:matterbridge
contradict:coturn
contradict:alpinefix
contradict:matrix
contradict:new-type/network-interface
contradict:feature/process
contradict:6.4
contradict:feature/info-command
contradict:feature/libexec
contradict:6.3
contradict:preos-plugins-dir-opt
contradict:gitlab-ci
contradict:6.2
contradict:order-dep-fix
contradict:6.1
contradict:6.0
contradict:build/support-pip-from-git
contradict:feature/shell-lib
contradict:5.1
contradict:feature/support-type-deprecation
contradict:5.0
contradict:feature/python-types
contradict:4.11
contradict:4.10
contradict:shellcheck
contradict:4.9
contradict:4.8
contradict:freebsd-improvements
contradict:new-prometheus
contradict:key_value-onchange
contradict:feature/output_streams
contradict:AnotherKamila-patch-1
contradict:__letsencrypt_cert-fixes
contradict:letsencrypt-cron-fix
contradict:4.7
contradict:newtype-__letsencrypt_cert
contradict:os_explorer_devuan_fix
contradict:prometheus-exporter-fixes
contradict:daemontools-for-fbsd
contradict:type-prometheus-exporter-from-master
contradict:prometheus-more-fixes
contradict:4.6
contradict:4.5
contradict:fix-j
contradict:steven-backport
contradict:4.4
contradict:prometheus-fixes
contradict:grafana_dashboard
contradict:prometheus
contradict:daemontools
contradict:consul_improvements
contradict:feature/trigger
contradict:4.3
contradict:4.0-pre-not-stable
contradict:4.2
contradict:4.1
contradict:4.0
contradict:feature_install_and_preos
contradict:3.1
contradict:no-dot-cdist
contradict:random_dot_cdist
contradict:feature_yum_url
contradict:feature_files_export
contradict:3.0
contradict:2.3
contradict:2.2
contradict:2.1
contradict:ssh_callback
contradict:2.0
contradict:archive_shell_function_approach
contradict:1.7
contradict:1.6
contradict:1.5
contradict:1.4
contradict:1.3
contradict:1.2
contradict:1.1
contradict:1.0
contradict:6.9.8
contradict:6.9.7
contradict:6.9.6
contradict:6.9.5
contradict:6.9.4
contradict:6.9.3
contradict:6.9.2
contradict:6.9.1
contradict:6.9.0
contradict:6.8.0
contradict:6.7.0
contradict:6.6.0
contradict:6.5.6
contradict:6.5.5
contradict:6.5.4
contradict:6.5.3
contradict:6.5.2
contradict:6.5.1
contradict:6.5.0
contradict:6.4.0
contradict:6.3.0
contradict:6.2.0
contradict:6.1.1
contradict:6.1.0
contradict:6.0.4
contradict:6.0.3
contradict:6.0.2
contradict:6.0.1
contradict:6.0.0
contradict:5.1.3
contradict:5.1.2
contradict:5.1.1
contradict:5.1.0
contradict:5.0.2
contradict:5.0.1
contradict:5.0.0
contradict:4.11.1
contradict:4.11.0
contradict:4.10.11
contradict:4.10.10
contradict:4.10.9
contradict:4.10.8
contradict:4.10.7
contradict:4.10.6
contradict:4.10.5
contradict:4.10.4
contradict:4.10.3
contradict:4.10.2
contradict:4.10.1
contradict:4.10.0
contradict:4.9.1
contradict:4.9.0
contradict:4.8.4
contradict:4.8.3
contradict:4.8.2
contradict:4.8.1
contradict:4.8.0
contradict:4.7.3
contradict:4.7.2
contradict:4.7.1
contradict:4.7.0
contradict:4.6.1
contradict:4.6.0
contradict:4.5.0
contradict:4.4.4
contradict:4.4.3
contradict:4.4.2
contradict:4.4.1
contradict:4.4.0
contradict:4.3.2
contradict:4.3.1
contradict:4.3.0
contradict:4.2.2
contradict:4.2.1
contradict:4.2.0
contradict:4.1.0
contradict:4.0.0
contradict:3.1.13
contradict:tn1
contradict:3.1.12
contradict:3.1.11
contradict:3.1.10
contradict:3.1.9
contradict:3.1.8
contradict:3.1.7
contradict:3.1.6
contradict:4.0.0pre3
contradict:3.1.5
contradict:3.1.4
contradict:3.1.3
contradict:3.1.2
contradict:3.1.1
contradict:3.1.0
contradict:4.0.0pre2
contradict:3.0.9
contradict:3.0.8
contradict:3.0.7
contradict:3.0.6
contradict:3.0.5
contradict:3.0.4
contradict:3.0.3
contradict:4.0.0pre1
contradict:3.0.2
contradict:3.0.1
contradict:3.0.0
contradict:2.3.7
contradict:2.3.6
contradict:2.3.5
contradict:2.3.4
contradict:2.3.3
contradict:2.3.2
contradict:2.3.1
contradict:2.3.0
contradict:2.2.0
contradict:2.1.2
contradict:2.1.1
contradict:2.1.0
contradict:2.1.0pre8
contradict:2.1.0pre7
contradict:2.1.0pre6
contradict:2.0.15
contradict:2.1.0pre5
contradict:2.1.0pre4
contradict:2.1.0pre3
contradict:2.1.0pre2
contradict:2.1.0pre1
contradict:2.0.14
contradict:2.0.13
contradict:2.0.12
contradict:2.0.11
contradict:2.0.10
contradict:2.0.9
contradict:2.0.8
contradict:2.0.7
contradict:2.0.6
contradict:2.0.5
contradict:2.0.4
contradict:2.0.3
contradict:2.0.2
contradict:2.0.1
contradict:2.0.0
contradict:1.7.1
contradict:1.7.0
contradict:1.6.2
contradict:1.6.1
contradict:1.6.0
contradict:1.5.0
contradict:1.4.1
contradict:1.4.0
contradict:1.3.2
contradict:1.3.1
contradict:1.3.0
contradict:1.2.0
contradict:1.1.0
contradict:1.0.4
contradict:1.0.3
contradict:1.0.2
contradict:1.0.1
contradict:1.0.0
contradict:0.9.9
contradict:0.9.8
contradict:0.9.7
contradict:0.9.6
contradict:0.9.5
contradict:0.9.4
contradict:0.9.3
contradict:0.9.2
contradict:0.9.1
contradict:0.9
contradict:0.8
contradict:0.7
contradict:0.6
contradict:0.5
contradict:0.4
contradict:0.3
contradict:0.2
contradict:0.1
..
compare: contradict:missing-apt-list
contradict:missing-apt-list
contradict:haproxy-dualstack
contradict:master
contradict:ander/__sed
contradict:beta
contradict:6.9
contradict:ander/os_version_debian_sid
contradict:evilham-compatibility-fixes
contradict:ander/__rsync
contradict:__snakeoil_cert
contradict:ander/update_readme
contradict:__download_improvements
contradict:feature/onchange
contradict:cleanup/string-formatting
contradict:feature/type-relationship-graph
contradict:cleanup/ssh-auth-keys-types
contradict:__letsencrypt_cert-fix-hooks
contradict:bugfix/preos-debug
contradict:bugfix/in-script-import
contradict:6.8
contradict:bugfix/sphinx-docs-build
contradict:6.7
contradict:cherry-pick-2f433a14
contradict:bugfix/make-code-consistent
contradict:6.6
contradict:regain-py3.2-support
contradict:6.5
contradict:bugfix/multiple-log-lines
contradict:matterbridge
contradict:coturn
contradict:alpinefix
contradict:matrix
contradict:new-type/network-interface
contradict:feature/process
contradict:6.4
contradict:feature/info-command
contradict:feature/libexec
contradict:6.3
contradict:preos-plugins-dir-opt
contradict:gitlab-ci
contradict:6.2
contradict:order-dep-fix
contradict:6.1
contradict:6.0
contradict:build/support-pip-from-git
contradict:feature/shell-lib
contradict:5.1
contradict:feature/support-type-deprecation
contradict:5.0
contradict:feature/python-types
contradict:4.11
contradict:4.10
contradict:shellcheck
contradict:4.9
contradict:4.8
contradict:freebsd-improvements
contradict:new-prometheus
contradict:key_value-onchange
contradict:feature/output_streams
contradict:AnotherKamila-patch-1
contradict:__letsencrypt_cert-fixes
contradict:letsencrypt-cron-fix
contradict:4.7
contradict:newtype-__letsencrypt_cert
contradict:os_explorer_devuan_fix
contradict:prometheus-exporter-fixes
contradict:daemontools-for-fbsd
contradict:type-prometheus-exporter-from-master
contradict:prometheus-more-fixes
contradict:4.6
contradict:4.5
contradict:fix-j
contradict:steven-backport
contradict:4.4
contradict:prometheus-fixes
contradict:grafana_dashboard
contradict:prometheus
contradict:daemontools
contradict:consul_improvements
contradict:feature/trigger
contradict:4.3
contradict:4.0-pre-not-stable
contradict:4.2
contradict:4.1
contradict:4.0
contradict:feature_install_and_preos
contradict:3.1
contradict:no-dot-cdist
contradict:random_dot_cdist
contradict:feature_yum_url
contradict:feature_files_export
contradict:3.0
contradict:2.3
contradict:2.2
contradict:2.1
contradict:ssh_callback
contradict:2.0
contradict:archive_shell_function_approach
contradict:1.7
contradict:1.6
contradict:1.5
contradict:1.4
contradict:1.3
contradict:1.2
contradict:1.1
contradict:1.0
contradict:6.9.8
contradict:6.9.7
contradict:6.9.6
contradict:6.9.5
contradict:6.9.4
contradict:6.9.3
contradict:6.9.2
contradict:6.9.1
contradict:6.9.0
contradict:6.8.0
contradict:6.7.0
contradict:6.6.0
contradict:6.5.6
contradict:6.5.5
contradict:6.5.4
contradict:6.5.3
contradict:6.5.2
contradict:6.5.1
contradict:6.5.0
contradict:6.4.0
contradict:6.3.0
contradict:6.2.0
contradict:6.1.1
contradict:6.1.0
contradict:6.0.4
contradict:6.0.3
contradict:6.0.2
contradict:6.0.1
contradict:6.0.0
contradict:5.1.3
contradict:5.1.2
contradict:5.1.1
contradict:5.1.0
contradict:5.0.2
contradict:5.0.1
contradict:5.0.0
contradict:4.11.1
contradict:4.11.0
contradict:4.10.11
contradict:4.10.10
contradict:4.10.9
contradict:4.10.8
contradict:4.10.7
contradict:4.10.6
contradict:4.10.5
contradict:4.10.4
contradict:4.10.3
contradict:4.10.2
contradict:4.10.1
contradict:4.10.0
contradict:4.9.1
contradict:4.9.0
contradict:4.8.4
contradict:4.8.3
contradict:4.8.2
contradict:4.8.1
contradict:4.8.0
contradict:4.7.3
contradict:4.7.2
contradict:4.7.1
contradict:4.7.0
contradict:4.6.1
contradict:4.6.0
contradict:4.5.0
contradict:4.4.4
contradict:4.4.3
contradict:4.4.2
contradict:4.4.1
contradict:4.4.0
contradict:4.3.2
contradict:4.3.1
contradict:4.3.0
contradict:4.2.2
contradict:4.2.1
contradict:4.2.0
contradict:4.1.0
contradict:4.0.0
contradict:3.1.13
contradict:tn1
contradict:3.1.12
contradict:3.1.11
contradict:3.1.10
contradict:3.1.9
contradict:3.1.8
contradict:3.1.7
contradict:3.1.6
contradict:4.0.0pre3
contradict:3.1.5
contradict:3.1.4
contradict:3.1.3
contradict:3.1.2
contradict:3.1.1
contradict:3.1.0
contradict:4.0.0pre2
contradict:3.0.9
contradict:3.0.8
contradict:3.0.7
contradict:3.0.6
contradict:3.0.5
contradict:3.0.4
contradict:3.0.3
contradict:4.0.0pre1
contradict:3.0.2
contradict:3.0.1
contradict:3.0.0
contradict:2.3.7
contradict:2.3.6
contradict:2.3.5
contradict:2.3.4
contradict:2.3.3
contradict:2.3.2
contradict:2.3.1
contradict:2.3.0
contradict:2.2.0
contradict:2.1.2
contradict:2.1.1
contradict:2.1.0
contradict:2.1.0pre8
contradict:2.1.0pre7
contradict:2.1.0pre6
contradict:2.0.15
contradict:2.1.0pre5
contradict:2.1.0pre4
contradict:2.1.0pre3
contradict:2.1.0pre2
contradict:2.1.0pre1
contradict:2.0.14
contradict:2.0.13
contradict:2.0.12
contradict:2.0.11
contradict:2.0.10
contradict:2.0.9
contradict:2.0.8
contradict:2.0.7
contradict:2.0.6
contradict:2.0.5
contradict:2.0.4
contradict:2.0.3
contradict:2.0.2
contradict:2.0.1
contradict:2.0.0
contradict:1.7.1
contradict:1.7.0
contradict:1.6.2
contradict:1.6.1
contradict:1.6.0
contradict:1.5.0
contradict:1.4.1
contradict:1.4.0
contradict:1.3.2
contradict:1.3.1
contradict:1.3.0
contradict:1.2.0
contradict:1.1.0
contradict:1.0.4
contradict:1.0.3
contradict:1.0.2
contradict:1.0.1
contradict:1.0.0
contradict:0.9.9
contradict:0.9.8
contradict:0.9.7
contradict:0.9.6
contradict:0.9.5
contradict:0.9.4
contradict:0.9.3
contradict:0.9.2
contradict:0.9.1
contradict:0.9
contradict:0.8
contradict:0.7
contradict:0.6
contradict:0.5
contradict:0.4
contradict:0.3
contradict:0.2
contradict:0.1
2 commits
master
...
missing-ap
Author | SHA1 | Message | Date | |
---|---|---|---|---|
ca4848b759 | Make date condition easier to read. | |||
aec8c665d7 |
Handle missing apt lists
On a newly imaged system, /var/lib/apt/lists may not exist. Check for this case before comparing dates to the sources. |
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ apt_opts="-o Acquire::AllowReleaseInfoChange::Suite=true -o Acquire::AllowReleas
|
|||
# run 'apt-get update' if anything in /etc/apt is newer then /var/lib/apt/lists
|
||||
# it will be run a second time on error as a redundancy messure to success
|
||||
cat << DONE
|
||||
if find /etc/apt -mindepth 1 -cnewer /var/lib/apt/lists | grep . > /dev/null; then
|
||||
newer_sources=\$(find /etc/apt -mindepth 1 -cnewer /var/lib/apt/lists)
|
||||
if [ ! -d /var/lib/apt/lists ] || [ -n "${newer_sources}" ]; then
|
||||
apt-get $apt_opts update || apt-get $apt_opts update
|
||||
fi
|
||||
DONE
|
||||
|
|
Write
Preview
Loading…
Reference in a new issue