- READ_VALID="no"
-
- while [ "${READ_VALID}" = "no" ]; do
- echo "Do you want to set MySQL root password? (y/n): "
- read SET_MYSQL_ROOT_PASS
-
- if [ "${SET_MYSQL_ROOT_PASS}" = "y" -o "${SET_MYSQL_ROOT_PASS}" = "n" ]; then
- READ_VALID="yes"
- else
- echo "Error, answer y or n"
- fi
- done
-
- if [ "${SET_MYSQL_ROOT_PASS}" = "y" ]; then
- # Further configuration requires that the MySQL server be running:
- mysqld_safe --user=mysql 2>&1 >/dev/null &
-
- PASS_MATCH="no"
-
- while [ "${PASS_MATCH}" = "no" ]; do
- echo -n "Enter new MySQL root password: " >&2
- read PASS1
- echo -n "Re-enter password to confirm : " >&2
- read PASS2
-
- if [ "${PASS1}" != "${PASS2}" ]; then
- echo "Error, passwords don't match"
+ if [ "x${USE_HTTPD}" = "xyes" ]; then
+ READ_VALID="no"
+
+ while [ "${READ_VALID}" = "no" ]; do
+ echo "Do you want to generate SSL self-signed"
+ echo -n "certificate for Apache? (y/n): "
+ read USE_SSL
+
+ if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
+ READ_VALID="yes"