This commit is contained in:
PaulVua
2025-01-09 22:30:58 +01:00
parent dda794dae4
commit 73e6883cf5
6 changed files with 198 additions and 4 deletions

View File

@@ -12,6 +12,12 @@ if ($type == "git_pull") {
echo $output;
}
if ($type == "linux_disk") {
$command = 'df -h /';
$output = shell_exec($command);
echo $output;
}
if ($type == "sshTunnel") {
$ssh_port=$_GET['ssh_port'];
$command = 'sudo ssh -i /var/www/.ssh/id_rsa -f -N -R "'.$ssh_port.':localhost:22" -p 50221 -o StrictHostKeyChecking=no "airlab_server1@aircarto.fr"';