From 2c5351eeca8958f22682ac28815ab83117627311 Mon Sep 17 00:00:00 2001 From: fithwum <34775371+fithwum@users.noreply.github.com> Date: Sun, 6 Jan 2019 11:50:13 -0800 Subject: [PATCH] Update debian-stretch_pt1.sh --- base-build/debian-stretch_pt1.sh | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/base-build/debian-stretch_pt1.sh b/base-build/debian-stretch_pt1.sh index 57bd55c..9725f3b 100644 --- a/base-build/debian-stretch_pt1.sh +++ b/base-build/debian-stretch_pt1.sh @@ -3,15 +3,30 @@ # All rights reserved RELEASE=stable - +echo " " +echo "INFO ! Downloading other parts of the script if needed." +if [ -e /debian-stretch_pt2.sh ] + then + echo "INFO ! debian-stretch_pt2.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-stretch_pt2.sh not found ... will download new copy." + wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-stretch_pt2.sh -O /debian-stretch_pt2.sh + chmod +x debian-stretch_pt2.sh +fi +if [ -e /debian-stretch_pt3.sh ] + then + echo "INFO ! debian-stretch_pt3.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-stretch_pt3.sh not found ... will download new copy." + wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-stretch_pt3.sh -O /debian-stretch_pt3.sh + chmod +x debian-stretch_pt3.sh +fi +sleep 1 echo " " echo "INFO ! Getting system updates" apt-get -y update -echo " " -echo "INFO ! Downloading other parts of the script." -wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-stretch_pt2.sh -O /debian-stretch_pt2.sh -wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-stretch_pt3.sh -O /debian-stretch_pt3.sh -chmod +x debian-stretch_pt2.sh debian-stretch_pt3.sh sleep 1 echo " " echo "INFO ! Installing debootstrap ftp-upload bash dirmngr" @@ -19,7 +34,7 @@ apt-get install -y debootstrap ftp-upload bash dirmngr sleep 1 echo " " echo "INFO ! Downloading debian & selected packages" -debootstrap --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,wget,bzip2,bash,nano,ca-certificates,git,software-properties-common --arch=amd64 stable /debian-stretch http://deb.debian.org/debian/ +debootstrap --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,wget,bzip2,bash,nano,ca-certificates,software-properties-common --arch=amd64 stable /debian-stretch http://deb.debian.org/debian/ echo " " echo "INFO ! Filesystem size uncompressed." du --human-readable --summarize debian-stretch