summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-25 09:26:29 -0300
committerRenato Botelho <renato@netgate.com>2015-09-25 09:26:29 -0300
commit096c514733ebbcd254bf428d807e1e10160f80e0 (patch)
tree5ea080b40cd34b1c59d6a47e80b7a1b0446b8a9c /src/usr/local/sbin
parent23ee0868b4c6f759ab98d25fe637149e7ff7256a (diff)
downloadpfsense-096c514733ebbcd254bf428d807e1e10160f80e0.zip
pfsense-096c514733ebbcd254bf428d807e1e10160f80e0.tar.gz
Relocate global variables definitions, no functional changes
Diffstat (limited to 'src/usr/local/sbin')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade
index f979c63..41afb66 100755
--- a/src/usr/local/sbin/pfSense-upgrade
+++ b/src/usr/local/sbin/pfSense-upgrade
@@ -269,6 +269,10 @@ upgrade() {
pid_file="/var/run/$(basename $0).pid"
last_update_file="/var/run/$(basename $0)-last-update"
logfile=/cf/conf/upgrade_log.txt
+stdout='/dev/null'
+
+# File used to detect second call, after kernel update and reboot
+upgrade_in_progress="/cf/conf/upgrade_in_progress"
# pkg should not ask for confirmations
export ASSUME_ALWAYS_YES=true
@@ -276,11 +280,6 @@ export ASSUME_ALWAYS_YES=true
# Disable automatic update
export REPO_AUTOUPDATE=false
-# File used to detect second call, after kernel update and reboot
-upgrade_in_progress="/cf/conf/upgrade_in_progress"
-
-stdout='/dev/null'
-
unset yes
action="run_upgrade"
while getopts duy opt; do
OpenPOWER on IntegriCloud