Skip to content

Commit 3462244

Browse files
committed
Rworked mail-wrapper and added HESTIA_VMD var.
1 parent 67e0637 commit 3462244

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

web/inc/mail-wrapper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/vesta/php/bin/php
1+
#!/usr/local/hestia/php/bin/php
22
<?php
33
error_reporting(NULL);
44
if (empty($argv[1])) {
@@ -15,20 +15,20 @@
1515

1616
define('NO_AUTH_REQUIRED',true);
1717

18-
include("/usr/local/vesta/web/inc/main.php");
18+
include("/usr/local/hestia/web/inc/main.php");
1919

2020
// Set system language
21-
exec (VESTA_CMD . "v-list-sys-config json", $output, $return_var);
21+
exec (HESTIA_CMD . "v-list-sys-config json", $output, $return_var);
2222
$data = json_decode(implode('', $output), true);
2323
if (!empty( $data['config']['LANGUAGE'])) {
2424
$_SESSION['language'] = $data['config']['LANGUAGE'];
2525
} else {
2626
$_SESSION['language'] = 'en';
2727
}
28-
require_once('/usr/local/vesta/web/inc/i18n/'.$_SESSION['language'].'.php');
28+
require_once('/usr/local/hestia/web/inc/i18n/'.$_SESSION['language'].'.php');
2929

3030
// Define vars
31-
$from = 'Vesta Control Panel <vesta@'.gethostname().'>';
31+
$from = 'Hestia Control Panel <hestia@'.gethostname().'>';
3232
$to = $argv[3]."\n";
3333
$subject = $argv[2]."\n";
3434
$mailtext = file_get_contents("php://stdin");

web/inc/main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
session_start();
44

55
define('VESTA_CMD', '/usr/bin/sudo /usr/local/hestia/bin/');
6+
define('HESTIA_CMD', '/usr/bin/sudo /usr/local/hestia/bin/');
67
define('JS_LATEST_UPDATE', '1491697868');
78

89
$i = 0;

0 commit comments

Comments
 (0)