opnsense / update

OPNsense update tools
https://opnsense.org/
BSD 2-Clause "Simplified" License
124 stars 74 forks source link

Please, don't delete /usr/local/etc/pkg before verifying succesfull download of bootstrap files #57

Closed terxw closed 4 years ago

terxw commented 4 years ago

After unsuccessfull attemp to run bootstrap script (connection timeout) the /usr/local/etc/pkg directory was deleted before verifying successfull download. Is this desired behaviour?

fichtner commented 4 years ago

Can you be more specific? I'm not aware of an issue and normally we use "set -e" to avoid going further if e.g. a download fails.

terxw commented 4 years ago

Thanks for reply, sorry for the delay, had too much work :(

I have problem with firmware update - localhost could not resolve hostnames, now,after adding route 0.0.0.0./0 to wan, resolve works but fetch or curl cannot connect, connection will time out, please see my forum post

As an attempt to manualy upgrade i ran bootstrap script and lost my /usr/local/etc/pkg directory.

I dont know if this directory is neccesary, just asking if another check could be added, maybe the problem was with me running script repeatedly with diferent urls... e.g. my manual edits could have caused it :)

Will manualy upgrade from usb to 19.7.5 after release.

fichtner commented 4 years ago

I have lost track of this, sorry. I'm not sure what's wrong, it sounds like a general setup issue leading to opnsense-bootstrap use, but to my knowledge that hasn't a lot of edge cases. A recovery opnsense-bootstrap is always left in the system as well...

fichtner commented 4 years ago

I'm closing this, I'm really not aware of the issue.