provisioning/o-klab/sgoyol/bin/on_deploy_remove

8 lines
267 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
RUN_PATH=$(dirname "$(dirname "$0")")
if [ -d "$RUN_PATH/resources/etcdcerts" ] && [ ! -r "$RUN_PATH/resources/etcdcerts/lockfile" ] ; then
if rm -rf "$RUN_PATH/resources/etcdcerts" ; then
echo "$RUN_PATH/resources/etcdcerts removed"
fi
fi