mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Update reboot.php
This commit is contained in:
parent
25cef50b2d
commit
4bbdc3af2d
@ -307,7 +307,7 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
|
|||||||
|
|
||||||
|
|
||||||
if ($tsdown == true) {
|
if ($tsdown == true) {
|
||||||
$cmds[] = $folders . 'function restart1 () { if [ "`ps fx | grep '.$tsbin.' | grep -v grep`" == "" ]; then ./ts3server_startscript.sh start > /dev/null & else ./ts3server_startscript.sh restart > /dev/null & fi }; restart1& ';
|
$cmds[] = $folders . 'function restart1 () { if [ "`ps fx | grep '.$tsbin.' | grep -v grep`" == "" ]; then ./ts3server_startscript.sh start inifile=ts3server.ini > /dev/null & else ./ts3server_startscript.sh restart inifile=ts3server.ini > /dev/null & fi }; restart1& ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($row2['usedns'] == 'Y' and $tsdnsdown == true) {
|
if ($row2['usedns'] == 'Y' and $tsdnsdown == true) {
|
||||||
@ -564,4 +564,4 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
|
|||||||
} else {
|
} else {
|
||||||
header('Location: login.php');
|
header('Location: login.php');
|
||||||
die('Statuscheck can only be run via console and or a cronjob');
|
die('Statuscheck can only be run via console and or a cronjob');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user