summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormischa <mischa@rx.high5.nl>2020-09-26 11:54:27 +0200
committermischa <mischa@rx.high5.nl>2020-09-26 11:54:27 +0200
commitf0f264d492c244d60ea149703fc1e523fdbab908 (patch)
treed0ee7a606f9ea534f745a4a2b4f1e868122787c0
parent50a2546d1889afb25bf8cd0c703766a61b0fd030 (diff)
changed location to mirrir.openbsd.amsterdam
-rwxr-xr-xdeploy.pl2
-rwxr-xr-xstats.sh9
2 files changed, 4 insertions, 7 deletions
diff --git a/deploy.pl b/deploy.pl
index 5defecf..c8790a5 100755
--- a/deploy.pl
+++ b/deploy.pl
@@ -204,7 +204,7 @@ sub render_install_conf {
printf $fh_install "Which disk is the root disk = sd0\n";
printf $fh_install "What timezone are you in = Europe/Amsterdam\n";
printf $fh_install "Location of sets = http\n";
- printf $fh_install "Server = openbsd.amsterdam\n";
+ printf $fh_install "Server = mirror.openbsd.amsterdam\n";
printf $fh_install "Set name(s) = +site*\n";
printf $fh_install "Continue anyway = yes\n";
printf $fh_install "Continue without verification = yes\n";
diff --git a/stats.sh b/stats.sh
index 050808c..e580c8c 100755
--- a/stats.sh
+++ b/stats.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (c) 2019 Mischa Peters <mischa @ openbsd.amsterdam>
+# Copyright (c) 2019-2020 Mischa Peters <mischa @ openbsd.amsterdam>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@@ -14,10 +14,7 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
+HOST=$(hostname -s)
TOTAL=$(vmctl show | grep -vc ID)
RUNNING=$(vmctl show | egrep -vc 'ID|- ')
-uname -a
-date
-w | grep -v mischa
-printf "VMs Running: %s of %s\n" "${RUNNING}" "${TOTAL}"
-
+printf "VMs Running: %2d of %2d (%s)\n" "${RUNNING}" "${TOTAL}" "${HOST}"