2023-04-22 08:19:45 -07:00
|
|
|
#!/bin/bash
|
2023-04-14 21:27:40 -07:00
|
|
|
%
|
|
|
|
if [[ $REBUILD == "packages" ]]; then
|
|
|
|
echo "## Busting Cache, Forcing Rebuild $(date)"
|
|
|
|
fi
|
|
|
|
%
|
2023-04-22 08:19:45 -07:00
|
|
|
echo "************* PACKAGE INSTALLATION ***********************"
|
|
|
|
if ! { [ "$VERBOSE" = "packages" ] || [ "$VERBOSE" = "all" ]; }; then unset VERBOSE; fi
|
|
|
|
source /opt/lib/verbose.lib
|
|
|
|
source /opt/core_run.env
|
|
|
|
echo Distro is $LINUX_DISTRO
|
|
|
|
echo package installer command for this build: "$INSTALL_PKGS"
|
|
|
|
echo package update command for this build: "$UPDATE_PKGS"
|
|
|
|
if [[ -f ./packages.lst || -f ./packages.sh ]]; then
|
|
|
|
if [[ -f ./packages.lst ]]; then
|
|
|
|
echo "----- Installing Packages ---------------"
|
|
|
|
_pkgs=$(< ./packages.lst)
|
|
|
|
echo $_pkgs
|
|
|
|
echo ....
|
|
|
|
silence ${INSTALL_PKGS} ${_pkgs}
|
|
|
|
echo "done ----- Installing Packages ---------------"
|
|
|
|
fi
|
|
|
|
if [[ -f ./packages.sh ]]; then
|
|
|
|
echo "---- Running package installation script packages.sh -----"
|
|
|
|
/bin/bash -l ./packages.sh
|
|
|
|
echo "done ---- Running package installation script packages.sh -----"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo neither packages.lst, nor packages.sh in source
|
|
|
|
echo nothing to install!
|
|
|
|
fi
|
|
|
|
echo "********************************"
|