update view Opennel Manager and change terminal header
This commit is contained in:
parent
22937b5bae
commit
4be4444a2f
6 changed files with 56 additions and 44 deletions
|
@ -178,6 +178,7 @@ then
|
|||
mkdir -p /tmp/pymanager/tmp || exit 2
|
||||
cp -pr $DIRPYMANAGER/* /tmp/pymanager || exit 2
|
||||
msg_debug "cd /tmp/pymanager; `which python3` setup.py bdist_wheel -d ${DIRBUILD} -b /tmp"
|
||||
rm -f ${DIRBUILD}/*.whl || exit 2
|
||||
cd /tmp/pymanager; `which python3` setup.py bdist_wheel -d ${DIRBUILD} -b /tmp/pymanager/tmp || exit 2
|
||||
fi
|
||||
|
||||
|
|
|
@ -134,10 +134,13 @@ if (file_exists($cfgfile)) {
|
|||
curl_close($ch);
|
||||
$data = json_decode($result,true);
|
||||
ksort($data);
|
||||
if ( $data )
|
||||
{
|
||||
echo "<table>";
|
||||
echo "<tr><th>Line</th>";
|
||||
foreach ($data as $key => $value)
|
||||
{
|
||||
ksort($value);
|
||||
foreach ($value as $key2 => $value2)
|
||||
{
|
||||
echo "<th>$key2</th>";
|
||||
|
@ -148,12 +151,16 @@ if (file_exists($cfgfile)) {
|
|||
foreach ($data as $key => $value)
|
||||
{
|
||||
echo "<tr><td>$key</td>";
|
||||
ksort($value);
|
||||
foreach ($value as $key2 => $value2)
|
||||
{
|
||||
echo "<td align=\"right\">$value2</td>";
|
||||
}
|
||||
}
|
||||
echo "</table></div>";
|
||||
} else {
|
||||
echo "<b>No admin command executed</b>";
|
||||
}
|
||||
} else {
|
||||
echo "<a>OpenNelManager not enabled</a>";
|
||||
}
|
||||
|
|
|
@ -138,12 +138,17 @@ if (file_exists($cfgfile)) {
|
|||
{
|
||||
echo "<p><div>$key</div>";
|
||||
echo "<table>";
|
||||
if ( $value )
|
||||
{
|
||||
echo "<tr><th>Key</th><th>Value</th></tr>";
|
||||
foreach ($value as $key2 => $value2)
|
||||
{
|
||||
echo "<tr><td>$key2</td><td align=\"right\">$value2</td>";
|
||||
}
|
||||
echo "</table></div>";
|
||||
} else {
|
||||
echo "<b>Nothing</b>";
|
||||
}
|
||||
echo "</p>";
|
||||
}
|
||||
|
||||
|
|
|
@ -134,10 +134,13 @@ if (file_exists($cfgfile)) {
|
|||
curl_close($ch);
|
||||
$data = json_decode($result,true);
|
||||
ksort($data);
|
||||
if ( $data )
|
||||
{
|
||||
echo "<table>";
|
||||
echo "<tr><th>Player</th>";
|
||||
foreach ($data as $key => $value)
|
||||
{
|
||||
ksort($value);
|
||||
foreach ($value as $key2 => $value2)
|
||||
{
|
||||
echo "<th>$key2</th>";
|
||||
|
@ -148,12 +151,16 @@ if (file_exists($cfgfile)) {
|
|||
foreach ($data as $key => $value)
|
||||
{
|
||||
echo "<tr><td>$key</td>";
|
||||
ksort($value);
|
||||
foreach ($value as $key2 => $value2)
|
||||
{
|
||||
echo "<td align=\"right\">$value2</td>";
|
||||
}
|
||||
}
|
||||
echo "</table></div>";
|
||||
} else {
|
||||
echo "<b>No player connected</b>";
|
||||
}
|
||||
|
||||
} else {
|
||||
echo "<a>OpenNelManager not enabled</a>";
|
||||
|
|
|
@ -76,7 +76,7 @@ source /home/gameserver/.bashrc
|
|||
# opennel-pymanager
|
||||
####################################
|
||||
msg_info "[$(basename $0):$LINENO] install/update opennel-pymanager"
|
||||
last_pymanager_package=$(ls /opt/ref/pymanager/pymanager*.whl | head -n 1)
|
||||
last_pymanager_package=$(ls /opt/ref/pymanager/pymanager*.whl | sort -r | head -n 1)
|
||||
if [[ -n "$last_pymanager_package" ]]
|
||||
then
|
||||
pip3 show pymanager
|
||||
|
|
|
@ -194,17 +194,9 @@ SSH : ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no gameserver
|
|||
+------------+----------+-------------------+
|
||||
|
||||
Use 'sudo bash' to connect on root (ssh/terminal)
|
||||
|
||||
-----------------------------------------
|
||||
SCREEN
|
||||
--------
|
||||
<Control>+A+N : next windows
|
||||
<Control>+A+P : previous windows
|
||||
<Control>+A+0 : windows 0 (terminal)
|
||||
<Control>+A+1 : windows 1 (AES)
|
||||
-----------------------------------------
|
||||
To launch server : go to windows AES and ENTER
|
||||
-----------------------------------------
|
||||
---------------------------------------------------
|
||||
log khanat server : /home/gameserver/khanat/server/log/log.log
|
||||
***************************************************
|
||||
ENDOFCOMMENT
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Reference in a new issue