]> git.proxmox.com Git - proxmox-acme.git/commitdiff
proxmox-acme: fix readaccountconf
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 Apr 2020 13:11:05 +0000 (15:11 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 20 Apr 2020 08:47:38 +0000 (10:47 +0200)
by switching to bash and echoing the values passed in from the plugin
config.

plugins like the OVH config attempt to detect and handle changed config
by comparing set env variables and values stored in the config, leading
to confusing output otherwise.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/proxmox-acme

index 49a86adb984601c074b5a264d0c3974dc5e2843f..db609edf12a3e1c8afc1ca2d7e48890cd9f60526 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/bash
 
 VER=0.9
 
 
 VER=0.9
 
@@ -516,7 +516,7 @@ _err() {
 
 # key
 _readaccountconf() {
 
 # key
 _readaccountconf() {
-  echo "$1"
+  echo "${!1}"
 }
 
 # key
 }
 
 # key