Created
September 9, 2011 22:52
-
-
Save othiym23/1207531 to your computer and use it in GitHub Desktop.
Simple function to generate locker list based on available configuration.
This file contains 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
get_locker_list () { | |
# Current flavor of generating the list of usable lockers: | |
# only try to operate on lockers that have LXC configuration information. | |
LOCKER_LIST=$(echo ${LXC_CONFIG}/locker_*.conf | sed "s|${LXC_CONFIG}/\(locker_[a-zA-Z0-9_]*\).conf|\1|g") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment