diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-03-03 16:21:48 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-03-03 16:21:48 -0300 |
commit | 218a4ffa50beeb34e63fd7dd0824632707f11cf3 (patch) | |
tree | dfa7cb7cb2e48a304746144ef36b0d19c1ce165a /etc/inc/upgrade_config.inc | |
parent | 6bb99c3fe0e5510c8c1962f082ef30bf0ab84a81 (diff) | |
download | pfsense-218a4ffa50beeb34e63fd7dd0824632707f11cf3.zip pfsense-218a4ffa50beeb34e63fd7dd0824632707f11cf3.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 7d8d476..10a2445 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 */ |