Last active
July 7, 2016 17:11
-
-
Save jhgorse/eab9e44f8ccd7933145c51541ca27242 to your computer and use it in GitHub Desktop.
An idempotent provision script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#export DEBIAN_FRONTEND=noninteractive | |
MARKER_FILE="/usr/local/etc/marker_file_1" | |
# Provision once | |
if [ -f "${MARKER_FILE}" ]; then | |
exit 0 | |
fi | |
# Do stuff here | |
# ... | |
# Touch the marker file so we don't do this again | |
touch ${MARKER_FILE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment