@@ -45,3 +45,8 @@ db_go
db_input medium ser-oob/DBMODE || true
db_go
+
+db_input medium ser-oob/CREATE_DB || true
+db_go
@@ -195,6 +195,14 @@ modparam("usrloc", "db_mode", $RET)
+++
fi
+db_get ser-oob/CREATE_DB
+if [ "$RET" = "true" ] ; then
+ db_set ser-oob/CREATE_DB false
+ echo "Creating ser database"
+ /usr/sbin/ser_mysql.sh create
+fi
fi # if changing config
echo ""
@@ -132,3 +132,11 @@ Description: usrloc database mode
avoid it).
.
Enter "!" to not modify this option.
+Template: ser-oob/CREATE_DB
+Type: boolean
+Default: false
+Description: Create ser database
+ Do you want to create ser database 'ser' with default users 'ser' and 'serro' on Mysql
+ server running on localhost ? You should use this option when doing first-time installation only.