diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-05-28 14:54:20 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-05-28 14:54:20 -0300 |
commit | f6332796d346869dc1607d698833b23babc9b9db (patch) | |
tree | 925d2ea28ebe9b12832544cbff7d650561437a9d /config/autoconfigbackup/autoconfigbackup.xml | |
parent | 0dba589de0f7f08ce1bec83d211204cbad670509 (diff) | |
download | pfsense-packages-f6332796d346869dc1607d698833b23babc9b9db.tar.gz pfsense-packages-f6332796d346869dc1607d698833b23babc9b9db.tar.bz2 pfsense-packages-f6332796d346869dc1607d698833b23babc9b9db.zip |
Trucate file using a better way than ugly exec() Calls
Diffstat (limited to 'config/autoconfigbackup/autoconfigbackup.xml')
-rw-r--r-- | config/autoconfigbackup/autoconfigbackup.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.xml b/config/autoconfigbackup/autoconfigbackup.xml index f3505f6a..47391f4b 100644 --- a/config/autoconfigbackup/autoconfigbackup.xml +++ b/config/autoconfigbackup/autoconfigbackup.xml @@ -145,7 +145,7 @@ <custom_php_resync_config_command> <![CDATA[ conf_mount_rw(); - exec("echo > /cf/conf/lastpfSbackup.txt"); + file_put_contents("/cf/conf/lastpfSbackup.txt", ""); conf_mount_ro(); if(!function_exists("filter_configure")) require_once("filter.inc"); |