From 8e51f07b7277d34b57a2054a33a1f2e7c65608b2 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 4 Feb 2014 11:33:09 +0100 Subject: [PATCH] Grant admin privileges to admin --- root/etc/e-smith/templates/etc/e-smith/sql/init/dl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/dl b/root/etc/e-smith/templates/etc/e-smith/sql/init/dl index b685cd1..eda06c3 100644 --- a/root/etc/e-smith/templates/etc/e-smith/sql/init/dl +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/dl @@ -43,6 +43,10 @@ REPLACE INTO db ( 'N', 'Y', 'Y'); FLUSH PRIVILEGES; + +use $db +INSERT INTO user (\\`name\\`,\\`role_id\\`) VALUES ('admin', '1') ON DUPLICATE KEY update role_id='1'; + EOF END }