mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Add some comments
This commit is contained in:
parent
280f4d792c
commit
5ea07b9f60
10
psu
10
psu
@ -66,6 +66,9 @@ echo_debug () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#########################
|
||||||
|
# Create/update a stack #
|
||||||
|
#########################
|
||||||
deploy () {
|
deploy () {
|
||||||
STACK_YAML_PATH=$DOCKER_COMPOSE_FILE
|
STACK_YAML_PATH=$DOCKER_COMPOSE_FILE
|
||||||
|
|
||||||
@ -164,6 +167,9 @@ deploy () {
|
|||||||
echo_verbose "Done"
|
echo_verbose "Done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##################
|
||||||
|
# Remove a stack #
|
||||||
|
##################
|
||||||
undeploy () {
|
undeploy () {
|
||||||
if [ -z "$STACK" ]; then
|
if [ -z "$STACK" ]; then
|
||||||
echo "Result: Stack $STACK_NAME not found."
|
echo "Result: Stack $STACK_NAME not found."
|
||||||
@ -198,7 +204,7 @@ HTTPIE_VERIFY_SSL=${HTTPIE_VERIFY_SSL:-"yes"}
|
|||||||
VERBOSE_MODE=${VERBOSE_MODE:-"false"}
|
VERBOSE_MODE=${VERBOSE_MODE:-"false"}
|
||||||
DEBUG_MODE=${DEBUG_MODE:-"false"}
|
DEBUG_MODE=${DEBUG_MODE:-"false"}
|
||||||
|
|
||||||
# Set arguments through flags
|
# Set arguments through flags (overwrite envvars)
|
||||||
while getopts a:u:p:l:n:c:e:rsvd option; do
|
while getopts a:u:p:l:n:c:e:rsvd option; do
|
||||||
case "${option}" in
|
case "${option}" in
|
||||||
a) ACTION=${OPTARG} ;;
|
a) ACTION=${OPTARG} ;;
|
||||||
@ -215,7 +221,7 @@ while getopts a:u:p:l:n:c:e:rsvd option; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# Print config
|
# Print config (only if debug mode is active)
|
||||||
echo_debug "ACTION -> $ACTION"
|
echo_debug "ACTION -> $ACTION"
|
||||||
echo_debug "PORTAINER_USER -> $PORTAINER_USER"
|
echo_debug "PORTAINER_USER -> $PORTAINER_USER"
|
||||||
echo_debug "PORTAINER_PASSWORD -> $PORTAINER_PASSWORD"
|
echo_debug "PORTAINER_PASSWORD -> $PORTAINER_PASSWORD"
|
||||||
|
Loading…
Reference in New Issue
Block a user