aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/database/files
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2016-03-02 01:19:16 -0500
committergrakiss <grakiss.wanglei@huawei.com>2016-03-02 01:19:16 -0500
commit240a6963c4a97628e5999828b24e9ecd3480efee (patch)
tree3c45452c1ea3b181b9c234eb558aa0756de40733 /deploy/adapters/ansible/roles/database/files
parenteb4981a928c1af044ba9a1a9043a40b6a5a45ec0 (diff)
FIX:access denied on centos7
JIRA:COMPASS-330 - access denied on centos7 Change-Id: I6e88aab4452b5a259e78b1aa6e0161586222a273 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/database/files')
-rwxr-xr-xdeploy/adapters/ansible/roles/database/files/remove_user.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/database/files/remove_user.sh b/deploy/adapters/ansible/roles/database/files/remove_user.sh
new file mode 100755
index 00000000..88b1518d
--- /dev/null
+++ b/deploy/adapters/ansible/roles/database/files/remove_user.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+mysql -uroot -Dmysql <<EOF
+use mysql;
+delete from user where user='';
+EOF