From 9dcf65a85b29069a1c801f2d52d891c54db90e4b Mon Sep 17 00:00:00 2001 From: jem Date: Tue, 21 Sep 2021 18:47:07 +0200 Subject: [PATCH] removed unused sh --- .../resources/nextcloud/configure-as-user.sh | 22 ---------------- .../nextcloud/install-as-root.sh.template | 4 --- src/main/resources/nextcloud/pod-running.sh | 25 ------------------- 3 files changed, 51 deletions(-) delete mode 100644 src/main/resources/nextcloud/configure-as-user.sh delete mode 100644 src/main/resources/nextcloud/install-as-root.sh.template delete mode 100644 src/main/resources/nextcloud/pod-running.sh diff --git a/src/main/resources/nextcloud/configure-as-user.sh b/src/main/resources/nextcloud/configure-as-user.sh deleted file mode 100644 index 6e46558..0000000 --- a/src/main/resources/nextcloud/configure-as-user.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -kubectl delete --ignore-not-found=true -f cloud-ingress.yml -kubectl delete --ignore-not-found=true -f cloud-pod.yml -kubectl delete --ignore-not-found=true -f cloud-pvc.yml -kubectl delete --ignore-not-found=true -f cloud-service.yml -kubectl delete --ignore-not-found=true -f cloud-secret.yml -kubectl delete --ignore-not-found=true -f cloud-persistent-volume.yml - -#Wait for postgres to be running -while [$POSTGRES = ""] -do - POSTGRES=$(kubectl get pods --selector=app=postgresql -o jsonpath='{.items[*].metadata.name}') -done -kubectl wait --for=condition=ready pod/$POSTGRES - -kubectl apply -f cloud-persistent-volume.yml -kubectl apply -f cloud-secret.yml -kubectl apply -f cloud-service.yml -kubectl apply -f cloud-pvc.yml -kubectl apply -f cloud-pod.yml -kubectl apply -f cloud-ingress.yml diff --git a/src/main/resources/nextcloud/install-as-root.sh.template b/src/main/resources/nextcloud/install-as-root.sh.template deleted file mode 100644 index 1492df6..0000000 --- a/src/main/resources/nextcloud/install-as-root.sh.template +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -mkdir -p /var/cloud -install -d -m 0777 -o {{user}} -g {{user}} /var/cloud diff --git a/src/main/resources/nextcloud/pod-running.sh b/src/main/resources/nextcloud/pod-running.sh deleted file mode 100644 index 61e8cb2..0000000 --- a/src/main/resources/nextcloud/pod-running.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -SECONDS=0 - -while true; do - - POD_STATUS="$(kubectl get pods --all-namespaces --field-selector=status.phase=Running | grep $1 )"; - if [ ! -z "$POD_STATUS" ] - then - # pod = ready is not enough - sleep $4 - break - fi - - let duration=$SECONDS/60 - # pallet needs a regular action, otherwise unwanted timeout after 5 min - echo "Seconds waited: ${SECONDS}" - if [ "$duration" -ge "$2" ] - then - exit 1 - fi - - sleep $3 -done - -exit 0