projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0b6e422
)
skip user creation if already exists, avoid errors
author
Chris Koeritz
<fred@gruntose.com>
Mon, 18 Dec 2017 20:54:59 +0000
(15:54 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 18 Dec 2017 20:54:59 +0000
(15:54 -0500)
scripts/site_avenger/revamp_cakelampvm.sh
patch
|
blob
|
history
diff --git
a/scripts/site_avenger/revamp_cakelampvm.sh
b/scripts/site_avenger/revamp_cakelampvm.sh
index 668a3a09e6593f654b41040e4de3e941146ebb62..ece38d9b536efe216709611631abac20248f7c86 100644
(file)
--- a/
scripts/site_avenger/revamp_cakelampvm.sh
+++ b/
scripts/site_avenger/revamp_cakelampvm.sh
@@
-229,13
+229,13
@@
echo successfully patched the samba configuration to enable writes on user home
sep
mysql -u root -p"$mysql_passwd" <<EOF
sep
mysql -u root -p"$mysql_passwd" <<EOF
- create user 'root'@'%' IDENTIFIED BY '$mysql_passwd';
+ create user
if not exists
'root'@'%' IDENTIFIED BY '$mysql_passwd';
grant all privileges on *.* TO 'root'@'%' with grant option;
grant all privileges on *.* TO 'root'@'%' with grant option;
- create user 'wampcake'@'%' IDENTIFIED BY 'bakecamp';
+ create user
if not exists
'wampcake'@'%' IDENTIFIED BY 'bakecamp';
grant all privileges on *.* TO 'wampcake'@'%' with grant option;
grant all privileges on *.* TO 'wampcake'@'%' with grant option;
- create user 'lampcake'@'%' IDENTIFIED BY 'bakecamp';
+ create user
if not exists
'lampcake'@'%' IDENTIFIED BY 'bakecamp';
grant all privileges on *.* TO 'lampcake'@'%' with grant option;
EOF
test_or_die "configuring root, wampcake and lampcake users on mysql"
grant all privileges on *.* TO 'lampcake'@'%' with grant option;
EOF
test_or_die "configuring root, wampcake and lampcake users on mysql"