Add certs:update alias for certs:add

This commit is contained in:
Jose Diaz-Gonzalez committed 2015-09-04 00:00:07 -04:00
1 parent 1371056b20
commit 71ebf1e476
1 file changed
+11 -2
+11 -2
View File
@@ -3,8 +3,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions" source "$(dirname $0)/../common/functions"
source "$(dirname $0)/functions" source "$(dirname $0)/functions"
case "$1" in certs_set() {
certs:add)
[[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1 [[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1
verify_app_name "$2" verify_app_name "$2"
[[ -t 0 ]] && echo "Tar archive containing server.crt and server.key expected on stdin" && exit 1 [[ -t 0 ]] && echo "Tar archive containing server.crt and server.key expected on stdin" && exit 1
@@ -40,6 +39,11 @@ case "$1" in
cd $DOKKU_ROOT cd $DOKKU_ROOT
rm -rf $TEMP_DIR rm -rf $TEMP_DIR
dokku nginx:build-config $APP dokku nginx:build-config $APP
}
case "$1" in
certs:add)
certs_set "$@"
;; ;;
certs:generate) certs:generate)
@@ -127,12 +131,17 @@ case "$1" in
fi fi
;; ;;
certs:update)
certs_set "$@"
;;
help | certs:help) help | certs:help)
cat && cat<<EOF cat && cat<<EOF
certs:add <app>, Add an ssl endpoint to an app. Imports a tarball from stdin; should contain server.crt and server.key certs:add <app>, Add an ssl endpoint to an app. Imports a tarball from stdin; should contain server.crt and server.key
certs:generate <app> DOMAIN, Generate a key and certificate signing request (and self-signed certificate) certs:generate <app> DOMAIN, Generate a key and certificate signing request (and self-signed certificate)
certs:info <app>, Show certificate information for an ssl endpoint. certs:info <app>, Show certificate information for an ssl endpoint.
certs:remove <app>, Remove an SSL Endpoint from an app. certs:remove <app>, Remove an SSL Endpoint from an app.
certs:update <app>, Update an SSL Endpoint on an app. Imports a tarball from stdin; should contain server.crt and server.key
EOF EOF
;; ;;