diff options
author | Erich Eckner <git@eckner.net> | 2016-04-13 14:52:04 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-13 14:52:04 +0200 |
commit | 1f8579cfabf5610244095e2c7f9ea65007a15796 (patch) | |
tree | 48be9dd9c3e4e858de9301197acbe888dbf12451 | |
parent | 2b588323a8502a20dfafb4cf2717ce4f5cf9be69 (diff) | |
download | archMirrorBootStrap-1f8579cfabf5610244095e2c7f9ea65007a15796.tar.xz |
nice comments
-rwxr-xr-x | README | 51 |
1 files changed, 44 insertions, 7 deletions
@@ -1,9 +1,20 @@ #!/bin/bash -# to be run as root ... + +#################################### +# # +# to be run as root ... # +# or executed step by step as root # +# # +#################################### set -e -# check and possibly install root-certificate +########################################################## +# # +# check and possibly install root-certificate of jeti100 # +# # +########################################################## + if ! curl -o /dev/null "https://jeti100.ioq.uni-jena.de/" 2> /dev/null then cert="$(curl -o - "http://jeti100.ioq.uni-jena.de/statisch/ca.crt" 2> /dev/null)" @@ -18,16 +29,37 @@ then trust export-compat fi -# import keys: + +################ +# # +# import keys: # +# # +################ + pacman-key --add <(curl -o - "https://arch.eckner.net/archlinuxewe/masterkeys.gpg") -# locally sign package-key +############################ +# # +# locally sign package-key # +# # +############################ + pacman-key --lsign-key 0x43BF68D3 -# locally sign repository-key +############################### +# # +# locally sign repository-key # +# # +############################### + pacman-key --lsign-key 0x20194BA1 -# setup mirror in mirrorlist +############################## +# # +# setup mirror in mirrorlist # +# # +############################## + if ! grep -q "^Server = https://arch\.eckner\.net" /etc/pacman.d/mirrorlist then ml="$( @@ -41,7 +73,12 @@ then /etc/pacman.d/mirrorlist fi -# setup repo in pacman.conf +################################### +# # +# setup repository in pacman.conf # +# # +################################### + if grep -q "^\[archlinuxewe\]\$" /etc/pacman.conf then tmpFile=$(mktemp) |