diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-23 17:03:01 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-23 17:52:42 -0300 |
commit | 3ea25fad5b60b67e17f46137575c8acb66b4bf63 (patch) | |
tree | 5fc8f06361b634af508666bf22660aaa8f87a18b /src/usr/local | |
parent | d6891fcc45699036cc2271b9e703bebd1f1488bd (diff) | |
download | pfsense-3ea25fad5b60b67e17f46137575c8acb66b4bf63.zip pfsense-3ea25fad5b60b67e17f46137575c8acb66b4bf63.tar.gz |
Declare logfile earlier
Diffstat (limited to 'src/usr/local')
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index d976121..778b741 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -47,6 +47,7 @@ # OF THE POSSIBILITY OF SUCH DAMAGE. pid_file="/var/run/$(basename $0).pid" +logfile=/cf/conf/upgrade_log.txt # pkg should not ask for confirmations export ASSUME_ALWAYS_YES=true @@ -251,8 +252,6 @@ echo $$ > ${pid_file} trap _exit 1 2 15 EXIT -logfile=/cf/conf/upgrade_log.txt - unset need_reboot if [ ! -f "${upgrade_in_progress}" ]; then if [ -f "${logfile}" ]; then |