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..8e5fe66 --- /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 diff --git a/root/etc/cont-init.d/98-flac2mp3 b/root/etc/cont-init.d/98-flac2mp3 index e8bff43..92e8242 100644 --- a/root/etc/cont-init.d/98-flac2mp3 +++ b/root/etc/cont-init.d/98-flac2mp3 @@ -18,7 +18,6 @@ if [ ! -f /usr/bin/ffmpeg ]; then if [ -f /usr/bin/apt ]; then # Ubuntu echo "Installing ffmpeg using apt-get" - apt-get update && \ apt-get -y install ffmpeg && \ rm -rf /var/lib/apt/lists/* elif [ -f /sbin/apk ]; then @@ -29,7 +28,6 @@ if [ ! -f /usr/bin/ffmpeg ]; then else # Unknown echo "Unknown package manager. Attempting to install ffmpeg using apt-get" - apt-get update && \ apt-get -y install ffmpeg && \ rm -rf /var/lib/apt/lists/* fi