Skip to content

Commit

Permalink
ch install order
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Nov 13, 2024
1 parent 8bd6e7f commit 0f0f948
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,13 @@ install_embark_dev(){
# apt packages
apt-get install -y npm pycodestyle python3-pylint-django default-libmysqlclient-dev build-essential bandit yamllint mysql-client-core-8.0
# get geckodriver
wget https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux64.tar.gz
tar -xvf geckodriver-v0.33.0-linux64.tar.gz
mv geckodriver /usr/local/bin
chmod +x /usr/local/bin/geckodriver
if ! command -v geckodriver > /dev/null ; then
wget https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux64.tar.gz
tar -xvf geckodriver-v0.33.0-linux64.tar.gz
mv geckodriver /usr/local/bin
chmod +x /usr/local/bin/geckodriver
rm geckodriver-v0.33.0-linux64.tar.gz
fi
# npm packages
npm install -g jshint
# npm install -g dockerlinter
Expand Down Expand Up @@ -721,6 +724,15 @@ install_debs
# mark dir as safe for git
sudo -u "${SUDO_USER:-${USER}}" git config --global --add safe.directory "${PWD}"


if [[ "${EMBA_ONLY}" -eq 0 ]]; then
if [[ ${DEFAULT} -eq 1 ]]; then
install_embark_default
elif [[ ${DEV} -eq 1 ]]; then
install_embark_dev
fi
fi

if [[ "${NO_EMBA}" -eq 0 ]]; then
# use git or release
if [[ "${NO_GIT}" -eq 1 ]]; then
Expand All @@ -734,12 +746,5 @@ fi
if [[ "${NO_EMBA}" -eq 1 ]]; then
echo "EMBA_INSTALL=no" >> .env
fi
if [[ "${EMBA_ONLY}" -eq 1 ]]; then
exit 0
fi
if [[ ${DEFAULT} -eq 1 ]]; then
install_embark_default
elif [[ ${DEV} -eq 1 ]]; then
install_embark_dev
fi

exit 0

0 comments on commit 0f0f948

Please sign in to comment.