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
06166a92
Commit
06166a92
authored
Apr 14, 2008
by
Antoine Beaupré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another last minute fix about mysql.cnf parsing
parent
21f2254a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
debian/config
debian/config
+1
-1
No files found.
debian/config
View file @
06166a92
...
...
@@ -46,7 +46,7 @@ if [ -r /etc/alternc/my.cnf ]; then
# * add a right quote operator at the end of line (;s)
# * convert mysql variables into our MYSQL_ naming convention (;s)
# * print the result (;p)
eval
`
sed
-n
-e
"/=/{s/ *= */='/;s/
\$
/'/;s/host/MYSQL_HOST/;s/user/MYSQL_LOGIN/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}"
/etc/alternc/my.cnf
`
eval
`
sed
-n
-e
"/=/{s/ *= *
\"
?
/='/;s/
\
"
?
\
$
/'/;s/host/MYSQL_HOST/;s/user/MYSQL_LOGIN/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}"
/etc/alternc/my.cnf
`
fi
# mettre les valeurs de local.sh comme "default" pour debconf
...
...
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