diff --git a/root/etc/cont-init.d/95-apt-get b/root/etc/cont-init.d/95-apt-get new file mode 100644 index 0000000..4797eca --- /dev/null +++ b/root/etc/cont-init.d/95-apt-get @@ -0,0 +1,5 @@ +#!/usr/bin/with-contenv bash + +if [ -f /usr/bin/apt ]; then + apt-get update +fi \ No newline at end of file diff --git a/root/etc/cont-init.d/95-git b/root/etc/cont-init.d/95-git index fe793de..4cf39da 100644 --- a/root/etc/cont-init.d/95-git +++ b/root/etc/cont-init.d/95-git @@ -2,15 +2,14 @@ # Determine if setup is needed if ! command -v git; then - ## Ubuntu - if [ -f /usr/bin/apt ]; then - apt-get update - apt-get install --no-install-recommends -y \ - git - fi - # Alpine - if [ -f /sbin/apk ]; then - apk add --no-cache \ - git - fi +## Ubuntu + if [ -f /usr/bin/apt ]; then + apt-get install --no-install-recommends -y \ + git + fi + # Alpine + if [ -f /sbin/apk ]; then + apk add --no-cache \ + git + fi fi