Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to prevent interactive dialog on Debian/Ubuntu during install #779

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions interact/axiom-configure
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ do
if [[ "$arg" == "--config" ]]; then
n=$((i+1))
config=$(echo ${!n})
config_flag="true"
set=true
pass+=($i)
pass+=($n)
Expand Down Expand Up @@ -227,7 +226,8 @@ if [[ $BASEOS == "Linux" ]]; then
dpkg-reconfigure --frontend noninteractive tzdata
fi
echo -e "${Blue}Installing other repo deps...${Color_Off}"
DEBIAN_FRONTEND=noninteractive sudo apt-get update && sudo apt-get install git ruby python3-pip curl iputils-ping net-tools unzip xsltproc bc rsync sudo wget nano bsdmainutils openssh-server fail2ban -y
apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install git ruby python3-pip curl iputils-ping net-tools unzip xsltproc bc rsync sudo wget nano bsdmainutils fail2ban
echo -e "${Blue}Installing jq...${Color_Off}"
sudo wget -q -O /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && sudo chmod +x /usr/bin/jq
echo -e "${Blue}Installing packer...${Color_Off}"
Expand Down Expand Up @@ -388,8 +388,8 @@ export PATH="$PATH:$HOME/.axiom/interact"
if [[ $unattended == "true" ]] ; then
echo -e "${BWhite}Axiom install complete. Run axiom-account-setup to use axiom...${Color_Off}"
echo -e "${BWhite}You may need to restart your shell: $SHELL${Color_Off}"
if [[ $config_flag == "true" ]] ; then
"$HOME"/.axiom/interact/axiom-account "$account"
if [ -z ${config+x} ]; then
"$HOME"/.axiom/interact/axiom-account "$account" >> /dev/null 2>&1
fi
exit 0
fi
Expand All @@ -404,3 +404,4 @@ else
echo -e "${BWhite}You may need to restart your shell: $SHELL${Color_Off}"
"$HOME"/.axiom/interact/axiom-account "$account"
fi