Révision e1854cad
Ajouté par jim-p il y a presque 10 ans
etc/inc/upgrade_config.inc | ||
---|---|---|
2657 | 2657 |
/* restore the databases, if we have one */ |
2658 | 2658 |
if (restore_rrd()) { |
2659 | 2659 |
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ |
2660 |
rename("{$g['cf_conf_path']}/rrd.tgz", "{$g['cf_conf_path']}/backup");
|
|
2660 |
@rename("{$g['cf_conf_path']}/rrd.tgz", "{$g['cf_conf_path']}/backup/rrd.tgz");
|
|
2661 | 2661 |
} |
2662 | 2662 |
} |
2663 | 2663 |
|
Formats disponibles : Unified diff
Properly handle this rename, and squelch errors if it fails.