Changeset 1301
- Timestamp:
- 08/05/08 23:39:38
(4 months ago)
- Author:
- rats
- Message:
* Fixed: MySQL root password containing " or ` ends up with an error
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1300 |
r1301 |
|
| 3 | 3 | |
|---|
| 4 | 4 | 2008-08-05 Benedikt Heintel |
|---|
| | 5 | - RELEASE ispCP ω Omega 1.0.0 RC6 |
|---|
| 5 | 6 | - SETUP: |
|---|
| 6 | 7 | * Fixed #1447: proftpd.conf missing replacements |
|---|
| | 8 | * Fixed: MySQL root password containing " or ` ends up with an error |
|---|
| 7 | 9 | |
|---|
| 8 | 10 | 2008-08-05 Daniel Andreca |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1295 |
r1301 |
|
| 9 | 9 | # |
|---|
| 10 | 10 | |
|---|
| 11 | | BuildDate = 20080804 |
|---|
| | 11 | BuildDate = 20080805 |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Version = 1.0.0 RC6 OMEGA |
|---|
| r1298 |
r1301 |
|
| 3444 | 3444 | # if username and pass for db exists - restore database from file |
|---|
| 3445 | 3445 | if ($dbuser && $dbpass) { |
|---|
| | 3446 | $dbpass =~ s/([\'\"])/\\$1/g; |
|---|
| 3446 | 3447 | $cmd = "$cmd_bzcat -d $dmn_bk_dir/$fname | $cmd_mysql --user=\"$dbuser\" --password=\"$dbpass\" --database=\"$db_name\""; |
|---|
| 3447 | 3448 | $rs = sys_command($cmd); |
|---|
| … | … | |
| 3472 | 3473 | # if username and pass for db exists - restore database from file |
|---|
| 3473 | 3474 | if ($dbuser && $dbpass) { |
|---|
| | 3475 | $dbpass =~ s/([\'\"])/\\$1/g; |
|---|
| 3474 | 3476 | $cmd = "$cmd_gzcat -d $dmn_bk_dir/$fname | $cmd_mysql --user=\"$dbuser\" --password=\"$dbpass\" --database=\"$db_name\""; |
|---|
| 3475 | 3477 | $rs = sys_command($cmd); |
|---|
| r1298 |
r1301 |
|
| 687 | 687 | return $rs if ($rs != 0); |
|---|
| 688 | 688 | |
|---|
| | 689 | # Escape " and ` |
|---|
| | 690 | $main::db_pwd =~ s/([\'\"])/\\$1/g; |
|---|
| 689 | 691 | my $cmd = "$main::cfg{'CMD_MYSQL'} --host=\"$main::db_host\" --user=\"$main::db_user\" --pass=\"$main::db_pwd\" < /tmp/db.sql 1>/tmp/db.sql.stdout 2>/tmp/db.sql.stderr"; |
|---|
| 690 | 692 | |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>