Iterate on docker-stacks script
This commit is contained in:
parent
8107347df2
commit
74ffb7dfec
@ -38,6 +38,9 @@ function compose_up_recreate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
|
NASONLY=false
|
||||||
|
LINT=false
|
||||||
|
FORCE=false
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-n | --nas-only)
|
-n | --nas-only)
|
||||||
@ -46,12 +49,26 @@ function main {
|
|||||||
-l | --lint)
|
-l | --lint)
|
||||||
LINT=true
|
LINT=true
|
||||||
;;
|
;;
|
||||||
|
-f | --force)
|
||||||
|
FORCE=true
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
OPERATION=$1
|
OPERATION="$OPERATION $1"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
case $OPERATION in
|
||||||
|
up)
|
||||||
|
echo "OPERATION is up"
|
||||||
|
;;
|
||||||
|
down)
|
||||||
|
echo "OPERATION is down"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "OPERATION is not up or down"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
echo "\$NASONLY is $NASONLY"
|
echo "\$NASONLY is $NASONLY"
|
||||||
echo "\$LINT is $LINT"
|
echo "\$LINT is $LINT"
|
||||||
|
Loading…
Reference in New Issue
Block a user