mirror of
https://github.com/YunoHost-Apps/mediawiki_ynh.git
synced 2024-09-03 19:46:05 +02:00
28 lines
479 B
Text
Executable file
28 lines
479 B
Text
Executable file
#!/usr/bin/hhvm -f
|
|
<?php
|
|
|
|
require __DIR__ . '/../Maintenance.php';
|
|
|
|
class RunHipHopServer extends Maintenance {
|
|
function __construct() {
|
|
parent::__construct();
|
|
}
|
|
|
|
function execute() {
|
|
global $IP;
|
|
|
|
passthru(
|
|
'cd ' . wfEscapeShellArg( $IP ) . " && " .
|
|
wfEscapeShellArg(
|
|
'hhvm',
|
|
'-c', __DIR__."/server.conf",
|
|
'--mode=server',
|
|
'--port=8080'
|
|
),
|
|
$ret
|
|
);
|
|
exit( $ret );
|
|
}
|
|
}
|
|
$maintClass = 'RunHipHopServer';
|
|
require_once RUN_MAINTENANCE_IF_MAIN;
|