diff --git a/nlvmi b/nlvmi index 9d486f2..35e820a 100755 --- a/nlvmi +++ b/nlvmi @@ -64,7 +64,17 @@ function createdb { usbdev1 VARCHAR(50), usbdev2 VARCHAR(50), usbdev3 VARCHAR(50), - kblang VARCHAR(50) + kblang VARCHAR(50), + memory INTEGER, + cpus INTEGER, + custom VARCHAR(50), + cputype VARCHAR(50) + );" + sqlite3 $SQLITEFILE "CREATE TABLE users ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + username VARCHAR(50) NOT NULL, + password VARCHAR(50), + admin INTEGER );" fi checkdb && echo "DB creation successful!" || (echo "Failed to create the DB"; exit 1)