Note also that there is a tcl script already in /etc/install which takes care of everything (database drop and re-add, cvs checkout, daemontools setup or restart, navigating the install web page) AFTER you have a machine with aolserver and postgres or oracle set up. Its other limitation is that it requires tclwebtest. Its use is documented at
https://openacs.org/doc/openacs-5-0-0/openacs.html#install-with-script.