Revision 096c5147
Added by Renato Botelho almost 10 years ago
src/usr/local/sbin/pfSense-upgrade | ||
---|---|---|
269 | 269 |
pid_file="/var/run/$(basename $0).pid" |
270 | 270 |
last_update_file="/var/run/$(basename $0)-last-update" |
271 | 271 |
logfile=/cf/conf/upgrade_log.txt |
272 |
stdout='/dev/null' |
|
273 |
|
|
274 |
# File used to detect second call, after kernel update and reboot |
|
275 |
upgrade_in_progress="/cf/conf/upgrade_in_progress" |
|
272 | 276 |
|
273 | 277 |
# pkg should not ask for confirmations |
274 | 278 |
export ASSUME_ALWAYS_YES=true |
... | ... | |
276 | 280 |
# Disable automatic update |
277 | 281 |
export REPO_AUTOUPDATE=false |
278 | 282 |
|
279 |
# File used to detect second call, after kernel update and reboot |
|
280 |
upgrade_in_progress="/cf/conf/upgrade_in_progress" |
|
281 |
|
|
282 |
stdout='/dev/null' |
|
283 |
|
|
284 | 283 |
unset yes |
285 | 284 |
action="run_upgrade" |
286 | 285 |
while getopts duy opt; do |
Also available in: Unified diff
Relocate global variables definitions, no functional changes