Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
7cfa0db5
Commit
7cfa0db5
authored
Apr 14, 2008
by
Antoine Beaupré
Browse files
fix mysql.cnf regexp for a last time, i hope
parent
becf621b
Changes
2
Hide whitespace changes
Inline
Side-by-side
debian/config
View file @
7cfa0db5
...
...
@@ -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
...
...
install/alternc.install
View file @
7cfa0db5
...
...
@@ -90,7 +90,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
WARNING
=
"WARNING: Do not edit this file, edit the one in /etc/alternc/templates and launch alternc.install again."
...
...
Write
Preview
Supports
Markdown
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