Skip to content

Commit

Permalink
add custom dependencies trough console (#628)
Browse files Browse the repository at this point in the history
* add custom dependencies trough console

* add refactor scripts working and tested on sans complexe project

Co-authored-by: Bruno Pinchedé <bruno.pinchede@artifakt.io>
  • Loading branch information
amatheossian1 and Buburoi committed Oct 17, 2022
1 parent e931cf9 commit 9907b05
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 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
16 changes: 16 additions & 0 deletions 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

0 comments on commit 9907b05

Please sign in to comment.