-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix dokku certs:add file input bug #1667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,11 +11,17 @@ is_tar_import() { | |
| } | ||
|
|
||
| is_file_import() { | ||
| local CRT_FILE="$3" | ||
| local KEY_FILE="$4" | ||
|
|
||
| if [[ -f $CRT_FILE ]] && [[ -f $KEY_FILE ]]; then | ||
| return 0 | ||
| local CRT_FILE="$1" | ||
| local KEY_FILE="$2" | ||
|
|
||
| if [[ $CRT_FILE ]] && [[ $KEY_FILE ]]; then | ||
| if [[ ! -f $CRT_FILE ]]; then | ||
| dokku_log_fail "CRT file specified not found, please check file paths" | ||
| elif [[ ! -f $KEY_FILE ]]; then | ||
| dokku_log_fail "KEY file specified not found, please check file paths" | ||
| else | ||
| return 0 | ||
| fi | ||
| fi | ||
|
|
||
| return 1 | ||
|
|
@@ -55,8 +61,8 @@ certs_set() { | |
| fi | ||
|
|
||
| mkdir -p "$DOKKU_ROOT/$APP/tls" | ||
| mv "$CRT_FILE" "$DOKKU_ROOT/$APP/tls/server.crt" | ||
| mv "$KEY_FILE" "$DOKKU_ROOT/$APP/tls/server.key" | ||
| cp "$CRT_FILE" "$DOKKU_ROOT/$APP/tls/server.crt" | ||
| cp "$KEY_FILE" "$DOKKU_ROOT/$APP/tls/server.key" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i suppose it doesn't matter as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @michaelshobbs no you tell me, why you delete my certs bro? That was my only copy!!! 😉 |
||
| cd $DOKKU_ROOT | ||
| rm -rf $TEMP_DIR | ||
| nginx_build_config $APP | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see the fix now!!!