diff options
author | David Kunz <david.kunz@dknet.ch> | 2021-07-12 13:37:46 +0000 |
---|---|---|
committer | David Kunz <david.kunz@dknet.ch> | 2021-08-24 13:08:31 +0000 |
commit | 0539d581dd588e494e6a42ab7335226162652f1e (patch) | |
tree | 371ae30a8bbf84ee32d294e49f43ff9aece388d6 /libexec/fence/functions/exist | |
parent | daniels debian directory (temporary!) (diff) | |
download | compute-tools-0539d581dd588e494e6a42ab7335226162652f1e.tar.xz compute-tools-0539d581dd588e494e6a42ab7335226162652f1e.zip |
Adding fencing scripts.
Diffstat (limited to 'libexec/fence/functions/exist')
-rwxr-xr-x | libexec/fence/functions/exist | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libexec/fence/functions/exist b/libexec/fence/functions/exist new file mode 100755 index 0000000..183b5c4 --- /dev/null +++ b/libexec/fence/functions/exist @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +NAME="${@}" + +sudo cnt list -f sh | grep -q "^${NAME}" |