Revision dc61252a
Added by Renato Botelho almost 9 years ago
src/etc/inc/upgrade_config.inc | ||
---|---|---|
2064 | 2064 |
|
2065 | 2065 |
$rrddbpath = "/var/db/rrd/"; |
2066 | 2066 |
$rrdtool = "/usr/bin/nice -n20 /usr/local/bin/rrdtool"; |
2067 |
if ($g['platform'] != $g['product_name']) {
|
|
2067 |
if (isset($config['system']['use_mfs_tmpvar'])) {
|
|
2068 | 2068 |
/* restore the databases, if we have one */ |
2069 | 2069 |
if (restore_rrd()) { |
2070 | 2070 |
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ |
... | ... | |
2783 | 2783 |
$rrddbpath = "/var/db/rrd/"; |
2784 | 2784 |
$rrdtool = "/usr/bin/nice -n20 /usr/local/bin/rrdtool"; |
2785 | 2785 |
|
2786 |
if ($g['platform'] != $g['product_name']) {
|
|
2786 |
if (isset($config['system']['use_mfs_tmpvar'])) {
|
|
2787 | 2787 |
/* restore the databases, if we have one */ |
2788 | 2788 |
if (restore_rrd()) { |
2789 | 2789 |
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ |
... | ... | |
3255 | 3255 |
$rrddbpath = "/var/db/rrd"; |
3256 | 3256 |
$rrdtool = "/usr/local/bin/rrdtool"; |
3257 | 3257 |
|
3258 |
if ($g['platform'] != $g['product_name']) {
|
|
3258 |
if (isset($config['system']['use_mfs_tmpvar'])) {
|
|
3259 | 3259 |
/* restore the databases, if we have one */ |
3260 | 3260 |
if (restore_rrd()) { |
3261 | 3261 |
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ |
... | ... | |
4647 | 4647 |
$awkcmd .= " print;\n"; |
4648 | 4648 |
$awkcmd .= "}'"; |
4649 | 4649 |
|
4650 |
if ($g['platform'] != $g['product_name']) {
|
|
4650 |
if (isset($config['system']['use_mfs_tmpvar'])) {
|
|
4651 | 4651 |
/* restore the databases, if we have one */ |
4652 | 4652 |
if (restore_rrd()) { |
4653 | 4653 |
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ |
... | ... | |
4866 | 4866 |
require_once("/etc/inc/services.inc"); |
4867 | 4867 |
|
4868 | 4868 |
// Remove these cron jobs on full install if not using ramdisk. |
4869 |
if (($g['platform'] == $g['product_name']) && !isset($config['system']['use_mfs_tmpvar'])) {
|
|
4869 |
if (!isset($config['system']['use_mfs_tmpvar'])) { |
|
4870 | 4870 |
install_cron_job("/etc/rc.backup_rrd.sh", false); |
4871 | 4871 |
install_cron_job("/etc/rc.backup_dhcpleases.sh", false); |
4872 | 4872 |
} |
Also available in: Unified diff
Deprecate nanobsd platform and remove all conditionals that uses it