replace config-template-variables also in commands to be executed, e.g. used in proftpd ssl-cert generation command

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-05-29 09:41:38 +02:00
parent 08563e9298
commit e5c16439e1

View File

@@ -133,11 +133,11 @@ if ($userinfo['change_serversettings'] == '1') {
}
switch ($action['type']) {
case "install":
$commands .= $action['content'] . "\n";
$commands .= strtr($action['content'], $replace_arr) . "\n";
$lasttype = "install";
break;
case "command":
$commands .= $action['content'] . "\n";
$commands .= strtr($action['content'], $replace_arr) . "\n";
$lasttype = "command";
break;
case "file":