diff options
author | Renato Botelho <renato@netgate.com> | 2015-10-13 19:10:08 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-10-13 19:10:08 -0300 |
commit | 7dd07954aa077b81b2ce03eeca92645dda074df3 (patch) | |
tree | 42f4f5a3343ac00b9d32660fb839d76c4bb8bdd3 | |
parent | a2df0a1bc77065fa29f8fb359c4d4007772f1319 (diff) | |
download | pfsense-7dd07954aa077b81b2ce03eeca92645dda074df3.zip pfsense-7dd07954aa077b81b2ce03eeca92645dda074df3.tar.gz |
Remove old logfile before start
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 479a5b1..53696ae 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -635,6 +635,10 @@ echo $$ > ${pid_file} trap _exit 1 2 15 EXIT +if [ "${action}" != "upgrade" -a -f "${logfile}" ]; then + rm -f ${logfile} +fi + if [ -n "${progress_fifo}" ]; then if [ ! -e "${progress_fifo}" ]; then mkfifo ${progress_fifo} |