alpine-overlay/kubezero/zdt-base/cb-volumes.startstop

19 lines
311 B
Bash
Executable File

#!/bin/sh
# vim:set ts=8 noet ft=sh:
#
. /usr/lib/cloudbender/base.sh
if [ "${0##*/}" = cb-volumes.start ]; then
get_meta_data
[ -z "$volumes" ] && return 0
mount_volumes "$volumes"
elif [ "${0##*/}" = cb-volumes.stop ]; then
get_meta_data
[ -z "$volumes" ] && return 0
unmount_volumes "$volumes"
fi