Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
domainepublic
alternc
Commits
9072c381
Commit
9072c381
authored
Feb 07, 2013
by
Alan Garcia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
La requete SQL pourri du siécle \o/
Shame on me !
parent
7e74a02b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/update_domains.sh
src/update_domains.sh
+1
-1
No files found.
src/update_domains.sh
View file @
9072c381
...
...
@@ -68,7 +68,7 @@ IFS="$NEWIFS"
mysql_query
"
select concat_ws('
$IFS
',lower(sd.type), if(length(sd.sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine), m.mail, sd.valeur )
from sub_domaines sd,membres m
where sd.web_action ='UPDATE'
where
sd.compte=m.uid and
sd.web_action ='UPDATE'
;"
|
while
read type
domain mail valeur
;
do
host_create
"
$type
"
"
$domain
"
"
$mail
"
"
$valeur
"
mysql_query
"update sub_domaines sd set web_action='OK',web_result='
$?
' where lower(sd.type)='
$type
' and if(length(sd.sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine)='
$domain
' and sd.valeur='
$valeur
'; "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment