forked from mirrors/openup
Make it possible to override openup values using /etc/openup.conf
instead of editing the script directly -- since the script will need to be overwritten on update.
This commit is contained in:
parent
1df35d2367
commit
cb6f138a3f
1 changed files with 16 additions and 12 deletions
26
openup
26
openup
|
|
@ -16,18 +16,22 @@
|
||||||
#
|
#
|
||||||
# Author: Antoine Jacoutot <antoine@mtier.org>
|
# Author: Antoine Jacoutot <antoine@mtier.org>
|
||||||
|
|
||||||
### user defined variables
|
[ -f /etc/openup.conf ] && . /etc/openup.conf
|
||||||
OPENUP_URL="https://stable.mtier.org/openup"
|
|
||||||
PKG_CERT_URL="https://stable.mtier.org/mtier.cert"
|
|
||||||
PKG_CERT_FPRINT="DE:29:0F:7F:B8:0E:36:5A:AF:A9:BF:E0:4E:08:C2:0F:2D:50:16:97"
|
|
||||||
PKG_PATH_MAIN="http://ftp.fr.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(arch -s)"
|
|
||||||
PKG_PATH_UPDATE="https://stable.mtier.org/updates/$(uname -r)/$(arch -s)"
|
|
||||||
VUXML_URL="https://stable.mtier.org/vuxml/$(uname -r | tr -d '.').xml"
|
|
||||||
### end of user defined variables
|
|
||||||
|
|
||||||
########################################################################
|
##### user defined variables -- overrides are read from /etc/openup.conf
|
||||||
### DO NOT MODIFY ANYTHING BELOW THIS LINE!!! ###
|
# URL to the latest openup version
|
||||||
########################################################################
|
OPENUP_URL="${OPENUP_URL:=https://stable.mtier.org/openup}"
|
||||||
|
# URL to the certificate that was used to sign the packages
|
||||||
|
PKG_CERT_URL="${PKG_CERT_URL:=https://stable.mtier.org/mtier.cert}"
|
||||||
|
# fingerprint of the certificate that was used to sign the packages
|
||||||
|
PKG_CERT_FPRINT="${PKG_CERT_FPRINT:=DE:29:0F:7F:B8:0E:36:5A:AF:A9:BF:E0:4E:08:C2:0F:2D:50:16:97}"
|
||||||
|
# PKG_PATH for currently running OpenBSD release
|
||||||
|
PKG_PATH_MAIN="${PKG_PATH_MAIN:=http://ftp.fr.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(arch -s)}"
|
||||||
|
# PKG_PATH for the corresponding release stable packages service
|
||||||
|
PKG_PATH_UPDATE="${PKG_PATH_UPDATE:=https://stable.mtier.org/updates/$(uname -r)/$(arch -s)}"
|
||||||
|
# URL to the latest vuxml (vulnerabilities database)
|
||||||
|
VUXML_URL="${VUXML_URL:=https://stable.mtier.org/vuxml/$(uname -r | tr -d '.').xml}"
|
||||||
|
##### end of user defined variables
|
||||||
|
|
||||||
_OPENUP_VERSION=10
|
_OPENUP_VERSION=10
|
||||||
_OPENUP_MINREL=53
|
_OPENUP_MINREL=53
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue