diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-03-03 16:21:23 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-03-03 16:21:23 -0300 |
commit | 48047e3fdc0f8d1b0846d494009b84b8135aa9dc (patch) | |
tree | 3e0b17e258c59dd3f573252314c03d62521a18ff /etc/inc/upgrade_config.inc | |
parent | de9ac478b3a846cc4068d21c0cb5cf8f8097e22b (diff) | |
download | pfsense-48047e3fdc0f8d1b0846d494009b84b8135aa9dc.zip pfsense-48047e3fdc0f8d1b0846d494009b84b8135aa9dc.tar.gz |
s/unlink/unlink_if_exists/
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index db33e1c..c412052 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -2788,8 +2788,8 @@ function upgrade_080_to_081() { mwexec("$rrdtool restore -f {$g['tmp_path']}/{$xmldumpnew} {$rrddbpath}/{$database} 2>&1"); unset($xml); # Default /tmp tmpfs is ~40mb, do not leave temp files around - unlink("{$g['tmp_path']}/{$xmldump}"); - unlink("{$g['tmp_path']}/{$xmldumpnew}"); + unlink_if_exists("{$g['tmp_path']}/{$xmldump}"); + unlink_if_exists("{$g['tmp_path']}/{$xmldumpnew}"); } enable_rrd_graphing(); /* Let's save the RRD graphs after we run enable RRD graphing */ |