From 9b90e79d4ddae75701c71504ae50a3e111eaca07 Mon Sep 17 00:00:00 2001 From: "kebler.net" Date: Sat, 21 Jan 2023 22:43:53 -0800 Subject: [PATCH] add package scripts for package install separation from initialization --- src/alpine/packages.sh | 9 +++++++++ src/debian/packages | 2 ++ src/debian/packages.sh | 6 ++++++ src/packages.sh | 6 ++++++ src/ubuntu/packages.sh | 6 ++++++ 5 files changed, 29 insertions(+) create mode 100644 src/alpine/packages.sh create mode 100644 src/debian/packages create mode 100644 src/debian/packages.sh create mode 100644 src/packages.sh create mode 100644 src/ubuntu/packages.sh diff --git a/src/alpine/packages.sh b/src/alpine/packages.sh new file mode 100644 index 0000000..4ef529e --- /dev/null +++ b/src/alpine/packages.sh @@ -0,0 +1,9 @@ +#!/bin/sh +echo install packages for alpine distro +apk update; apk upgrade; +pwd; ls -la +echo ">>>> installing packages => alpine: $(cat ./packages); common: $(cat ../common/packages)" +apk add --no-cache bash bash-completion $(cat ./packages) $(cat ../common/packages) +# apk add bindfs --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing +# needed for useradd and groupadd +apk add shadow --repository=http://dl-2.alpinelinux.org/alpine/edge/community diff --git a/src/debian/packages b/src/debian/packages new file mode 100644 index 0000000..a8bfc18 --- /dev/null +++ b/src/debian/packages @@ -0,0 +1,2 @@ +ca-certificates +gpg \ No newline at end of file diff --git a/src/debian/packages.sh b/src/debian/packages.sh new file mode 100644 index 0000000..144917e --- /dev/null +++ b/src/debian/packages.sh @@ -0,0 +1,6 @@ +#!/bin/bash +echo install packages for ubuntu distro +apt-get update +echo ">>>> installing packages => $(cat packages) $(cat common-packages)" +apt-get install $(cat packages) $(cat ../common/packages) -y +/bin/bash add-ppa.sh -i -p git git-core/ppa diff --git a/src/packages.sh b/src/packages.sh new file mode 100644 index 0000000..6557204 --- /dev/null +++ b/src/packages.sh @@ -0,0 +1,6 @@ +#!/bin/sh + echo "installing packages...." + cd ${LINUX_DISTRO} || exit 1 +/bin/sh packages.sh + cd .. + \ No newline at end of file diff --git a/src/ubuntu/packages.sh b/src/ubuntu/packages.sh new file mode 100644 index 0000000..5ff2310 --- /dev/null +++ b/src/ubuntu/packages.sh @@ -0,0 +1,6 @@ +#!/bin/bash +echo install packages for ubuntu distro +apt-get update +echo ">>>> installing packages => $(cat packages) $(cat common-packages)" +apt-get install $(cat packages) $(cat ../common/packages) -y +# ./add-ppa.sh -i -p git git-core/ppa