home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9dd72f9b110dcb364b28104f113f2cc17308503e
parent 5e37f81b0cc33471c38636aea7c7cd77392bf5db
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 20 Jan 2020 14:23:42 +0100

chos4: add an option to run install on chos4

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Massets/chos4.desktop | 2+-
Mpkgs/scripts/bin/chos4 | 8++++----
Mpkgs/scripts/bin/op-inst | 3---
3 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/assets/chos4.desktop b/assets/chos4.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=chos4 -Exec=chos4 +Exec=chos4 install Type=Application Terminal=true Categories=System; diff --git a/pkgs/scripts/bin/chos4 b/pkgs/scripts/bin/chos4 @@ -17,9 +17,9 @@ done export KUBECONFIG=~/.kube/config.os4 oc login -u kubeadmin -p $(cat ~/.kube/kubeadmin.password.os4) -echo ">>> scale machineset to 2" -for machineset in $(oc get machineset -n openshift-machine-api -o name); do - oc scale --replicas=2 ${machineset} -n openshift-machine-api -done +if [[ "$1" == "install" ]]; then + op-inst +fi +echo ">>> your cluster is ready :)" read diff --git a/pkgs/scripts/bin/op-inst b/pkgs/scripts/bin/op-inst @@ -38,6 +38,3 @@ spec: source: community-operators sourceNamespace: openshift-marketplace EOF - -echo ">>> your cluster is ready :)" -read