check secret availability before run

This commit is contained in:
2025-09-24 16:51:25 +02:00
parent 9803c4b312
commit ccc973c5ef

View File

@@ -149,6 +149,9 @@ precheck_conf_ceph()
prnt m "you need to export it temporarily in your environment, using the"
prnt m "\"CEPH_SECRET\" variable."
die 181
elif ! check_secret $CEPH_SECRET; then
prnt E "The declared $CEPH_SECRET is not accessible."
die 183
fi
if [[ -z $CEPH_MOUNTS ]]; then
prnt E "No CEPH mounts declared, despite reachable servers."