1 |
jcrisp |
1.1 |
diff -ruN dehydrated-0.6.2.old/dehydrated dehydrated-0.6.2/dehydrated |
2 |
|
|
--- dehydrated-0.6.2.old/dehydrated 2019-11-22 10:22:35.173777041 +0100 |
3 |
|
|
+++ dehydrated-0.6.2/dehydrated 2019-11-22 10:24:21.418941136 +0100 |
4 |
|
|
@@ -397,6 +397,8 @@ |
5 |
|
|
# Read account information or request from CA if missing |
6 |
|
|
if [[ -e "${ACCOUNT_KEY_JSON}" ]]; then |
7 |
|
|
ACCOUNT_ID="$(cat "${ACCOUNT_KEY_JSON}" | get_json_int_value id)" |
8 |
|
|
+ fi |
9 |
|
|
+ if [ -n "${ACCOUNT_ID:-}" ]; then |
10 |
|
|
if [[ ${API} -eq 1 ]]; then |
11 |
|
|
ACCOUNT_URL="${CA_REG}/${ACCOUNT_ID}" |
12 |
|
|
else |