Open quochuy opened 5 years ago
This almost works, if you know which ENV variables to set - so this is more a question of documentation. Example:
export DISTRO="ubuntu-18.04"
export CFG_SQLSERVER="MySQL"
export CFG_MYSQL_ROOT_PWD="$(openssl rand -base64 16)"
export CFG_WEBSERVER="Apache"
export CFG_XCACHE="yes"
export CFG_PHPMYADMIN="no"
export CFG_MTA="Courier"
export CFG_HHVMINSTALL="no"
export CFG_METRONOME="no"
export CFG_AVUPDATE="yes"
export CFG_QUOTA="yes"
export CFG_ISPC="standard"
export CFG_JKIT="yes"
export CFG_WEBMAIL="squirrelmail"
export SSL_COUNTRY="DE"
export SSL_STATE="DE"
export SSL_LOCALITY="My City"
export SSL_ORGANIZATION="My Org"
export SSL_ORGUNIT="My Dpt"
Only issue is that the question for the distro still comes, even if the $DISTRO
is set. Dirty workaround for that:
echo 'y' | ./install.sh
In general I agree with @quochuy - a fully automated solution would be really nice.
Would be good if the installer have an option to pass in an installation config file instead of asking questions. This would allow fully automated build without human interaction.