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:
@@ -133,11 +133,11 @@ if ($userinfo['change_serversettings'] == '1') {
|
|||||||
}
|
}
|
||||||
switch ($action['type']) {
|
switch ($action['type']) {
|
||||||
case "install":
|
case "install":
|
||||||
$commands .= $action['content'] . "\n";
|
$commands .= strtr($action['content'], $replace_arr) . "\n";
|
||||||
$lasttype = "install";
|
$lasttype = "install";
|
||||||
break;
|
break;
|
||||||
case "command":
|
case "command":
|
||||||
$commands .= $action['content'] . "\n";
|
$commands .= strtr($action['content'], $replace_arr) . "\n";
|
||||||
$lasttype = "command";
|
$lasttype = "command";
|
||||||
break;
|
break;
|
||||||
case "file":
|
case "file":
|
||||||
|
|||||||
Reference in New Issue
Block a user