[BACK]Return to update_openbsdrc.example CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

File: [local] / openbsd / update_openbsd / update_openbsdrc.example (download)

Revision 1.7, Sat Feb 1 19:13:54 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -5 lines

Require running update_openbsd as root

It doesn't make sense to use SUDO to run specific bits because it is flaky.
That is, sometimes the sudo timeout will happen before the next step so you
will have to notice and type the password again.  This is often a problem
on machines with slower disks.

It does mean downloading and verifying the sets as root instead of an
normal user but that is not too big of a deal.

It might be worthwhile to wrap the privileged actions in a function and figure
out how to run that entire function as root but that's complication we don't
actually need.

Thanks to Chris Cappuccio for the suggestion.

# Copy this to /etc/update_openbsd.conf or ~/.update_openbsdrc
# $AFresh1: update_openbsdrc.example,v 1.7 2014/02/01 19:13:54 andrew Exp $
MIRROR=http://ftp.openbsd.org.example/pub/OpenBSD

PKG_PATH="/usr/ports/packages/`machine`/all/:${MIRROR}/`uname -r`/packages/`machine`/"

# Other things you might want to override
#FORCE_DIR=snapshots
#DESTDIR=
#RELEASEDIR=
#FTP_CMD=