Page 1 of 1

hda-install unattended flag?

Posted: Sat Sep 02, 2017 12:40 pm
by sgtfoo
Is there a flag in the hda-install command to allow for an unattended install with an Amahi code, that either reboots or doesn't reboot after completion?

When I checked

Code: Select all

hda-install --help
It just shows the flags..

Code: Select all

-V -f -s -d -r -D -h -n -w -m -o -y -q -i VAL -p
Is there documentation for this? And is the code on Github for me to take the docs and improve the --help output?

Thanks, gents!

Re: hda-install unattended flag?

Posted: Sat Sep 02, 2017 4:57 pm
by cpg
hda-install without any argument gives some helpful usage info. Unfortunately, it looks like we used -h for httpd reconfiguration and we have -r for some arcane ruby exclusion, which may have been a good option for rebooting at the end. Maybe use -y option (for answering "yes" at the end about the reboot ... it would be in line with Unix style of options).

It should not be too hard to add. The code is here.

Re: hda-install unattended flag?

Posted: Sat Sep 02, 2017 6:56 pm
by sgtfoo
Awesome!
Thanks!

Looks like -q (quit and no prompt for reboot) is what I need.

Re: hda-install unattended flag?

Posted: Sat Sep 02, 2017 7:13 pm
by bigfoot65
We should add this info to the wiki.

So if I understand correctly:

Code: Select all

hda-install CODE -q
Does the install then reboots the machine?

Re: hda-install unattended flag?

Posted: Sat Sep 02, 2017 11:52 pm
by cpg
This is probably not worthy of adding to the wiki (too obscure/rare, and it's self documenting). I think it's it's

Code: Select all

hda-install <options> CODE
i.e.
usage: hda-install [options] YOUR_INSTALL_CODE
options:
-f: force
-r: exclude ruby install
-h: reconfigure httpd
-s: reconfigure samba
-d: reconfigure db
-n: reconfigure network settings
-m: reconfigure monit
-o: disable SELinux and firewall (does not need install code)
-D: debug output
-q: quit after done, do not wait asking for the user input to reboot
-i device: use this interface for networking (default: eth0)
-p: VPS mode
-V: version
ps: looks like CODE formatting in the forum is borked. the above should be ~15 lines below (i had to use QUOTE above, which kind of works):

Code: Select all

usage: hda-install [options] YOUR_INSTALL_CODE options: -f: force -r: exclude ruby install -h: reconfigure httpd -s: reconfigure samba -d: reconfigure db -n: reconfigure network settings -m: reconfigure monit -o: disable SELinux and firewall (does not need install code) -D: debug output -q: quit after done, do not wait asking for the user input to reboot -i device: use this interface for networking (default: eth0) -p: VPS mode -V: version

Re: hda-install unattended flag?

Posted: Mon Sep 04, 2017 1:45 pm
by sgtfoo
We should add this info to the wiki.

So if I understand correctly:

Code: Select all

hda-install CODE -q
Does the install then reboots the machine?

It's to exit the installer after completion and not reboot.