From 9907b05b071a6b441cbb71a91f4ba9719097f2fd Mon Sep 17 00:00:00 2001 From: amatheossian1 <72925878+amatheossian1@users.noreply.github.com> Date: Mon, 17 Oct 2022 09:38:11 +0200 Subject: [PATCH] add custom dependencies trough console (#628) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add custom dependencies trough console * add refactor scripts working and tested on sans complexe project Co-authored-by: Bruno Pinchedé --- .../2.4-php8/artifakt_scripts/apt_get_install.sh | 16 ++++++++++++++++ magento/2.4/artifakt_scripts/apt_get_install.sh | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 magento/2.4-php8/artifakt_scripts/apt_get_install.sh create mode 100755 magento/2.4/artifakt_scripts/apt_get_install.sh diff --git a/magento/2.4-php8/artifakt_scripts/apt_get_install.sh b/magento/2.4-php8/artifakt_scripts/apt_get_install.sh new file mode 100755 index 00000000..70cbf8e3 --- /dev/null +++ b/magento/2.4-php8/artifakt_scripts/apt_get_install.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "CHECKING if more dependencies need to be installed" + +if [ -n "$APT_GET_INSTALL" ]; then + echo "Depedencies found. Installing $APT_GET_INSTALL" + apt-get update --fix-missing + for i in $APT_GET_INSTALL; do + echo "Install $i" + sudo apt-get install -y "$i" + done + rm -rf /var/lib/apt/lists/* + echo "Install done." +else + echo "No dependencies to add." +fi \ No newline at end of file diff --git a/magento/2.4/artifakt_scripts/apt_get_install.sh b/magento/2.4/artifakt_scripts/apt_get_install.sh new file mode 100755 index 00000000..70cbf8e3 --- /dev/null +++ b/magento/2.4/artifakt_scripts/apt_get_install.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "CHECKING if more dependencies need to be installed" + +if [ -n "$APT_GET_INSTALL" ]; then + echo "Depedencies found. Installing $APT_GET_INSTALL" + apt-get update --fix-missing + for i in $APT_GET_INSTALL; do + echo "Install $i" + sudo apt-get install -y "$i" + done + rm -rf /var/lib/apt/lists/* + echo "Install done." +else + echo "No dependencies to add." +fi \ No newline at end of file