Commit 8c416ca8 authored by Nijsse, Bart's avatar Nijsse, Bart
Browse files

cleanup + version

parent a6f9c565
......@@ -3,8 +3,8 @@
#title :Synchronisation of binaries and databases to compute nodes
#description :Script to sync all needed resources from iRODS
#author :Jasper Koehorst & Bart Nijsse
#date :2020
#version :0.0.1
#date :2021
#version :0.0.2
#============================================================================
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......@@ -13,7 +13,7 @@ usage() { echo "Usage: $0 [-c|--cwl] [-r|--references] [-i|--infrastructure] [-a
vars=$(getopt -o c:r:i:a: --long cwl:,references:,infrastructure:,all:)
#============================================================================
# KUBERNETES JOBS
# KUBERNETES
#============================================================================
# Clean up finished sync pods
......@@ -21,7 +21,6 @@ kubectl get pods --namespace='unlock' | grep munlock-sync | grep Completed | awk
# Get all possible nodes
kubectl get nodes -l node-role.kubernetes.io/worker=true | grep -v "SchedulingDisabled" | awk '{print $1}' | grep -v NAME > $DIR/nodes.txt
runall=false
if [ "$1" == "" ]; then
runall=true
......@@ -49,8 +48,7 @@ if $runall; then
exit 1
fi
# If not all sent job any given option
# If not all sent job for any given argument
for opt; do
case "$opt" in
-c|--cwl)
......@@ -85,6 +83,5 @@ for opt; do
;;
*)
usage
esac
done
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment