From 42a3fd82bb775acf242513c083da49f2b2fcfd6c Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Wed, 24 Jul 2013 23:14:15 -0500 Subject: [PATCH] Adding bootstrap script --- indefero/scripts/bootstrap.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 indefero/scripts/bootstrap.php diff --git a/indefero/scripts/bootstrap.php b/indefero/scripts/bootstrap.php new file mode 100644 index 0000000..3b3dfe9 --- /dev/null +++ b/indefero/scripts/bootstrap.php @@ -0,0 +1,18 @@ +first_name = ''; +$user->last_name = 'Admin'; // Required! +$user->login = 'admin'; // must be lowercase! +$user->email = 'admin@example.com'; +$user->password = 'admin'; // the password is salted/hashed + // in the database, so do not worry :) +$user->administrator = true; +$user->active = true; +$user->create(); +print "Bootstrap ok\n"; +?> \ No newline at end of file