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

axiom-configure gets dialog prompt if OpenSSH is already installed on Debian #660

Open
rl1987 opened this issue Jan 5, 2023 · 5 comments

Comments

@rl1987
Copy link

rl1987 commented Jan 5, 2023

There's this line in axiom-configure script:

        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 

If OpenSSH is already installed, installing openssh-server via APT may present a dialog asking the user if they want to keep the existing configuration or not. This is a show-stopper for unattended, automated installations in Debian-ish server environment, such as Digital Ocean instances.

@rl1987 rl1987 changed the title axiom-configure gets stuck if OpenSSH is already installed on Debian axiom-configure gets dialog prompt if OpenSSH is already installed on Debian Jan 5, 2023
@0xtavian
Copy link
Collaborator

0xtavian commented Jan 5, 2023

@rl1987 Interesting, what OS are you using with DO? Can you try with Ubuntu 20.04?

@rl1987
Copy link
Author

rl1987 commented Jan 5, 2023

Debian 11. The command in provisioning script that would be executed via cloud-init is:

printf "\n1\nn\ndo\ny\n$(cat do_token.txt)\nsfo3\n\n\n\n\nquest\nbarebones\n\n\n" | ./axiom-configure

I'll try experimenting some more to isolate the issue better.

@rl1987
Copy link
Author

rl1987 commented Jan 6, 2023

Not getting the prompt on Ubuntu 20.04.

@rl1987
Copy link
Author

rl1987 commented Jan 26, 2024

Tried this again and the problem resurfaced.

@rl1987
Copy link
Author

rl1987 commented Jan 26, 2024

My attempt to fix this: #779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants