From 53704b58aad63adac81dcdaeb6521f2925767efa Mon Sep 17 00:00:00 2001 From: donbuehl Date: Tue, 27 Aug 2024 21:43:46 +0200 Subject: [PATCH] Final minimal viable solution --- emhttp/plugins/dynamix/include/OpenTerminal.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/OpenTerminal.php b/emhttp/plugins/dynamix/include/OpenTerminal.php index 349b51dca..fbba2d93e 100644 --- a/emhttp/plugins/dynamix/include/OpenTerminal.php +++ b/emhttp/plugins/dynamix/include/OpenTerminal.php @@ -51,8 +51,7 @@ case 'ttyd': // no child processes, restart ttyd to pick up possible font size change if ($retval != 0) exec("kill ".$ttyd_pid[0]); } - $shell = posix_getpwuid(0)['shell'] === '/bin/zsh' ? 'zsh' : 'bash'; - if ($retval != 0) exec("ttyd-exec -i '$sock' '$shell' --login"); + if ($retval != 0) exec("ttyd-exec -i '$sock' '" . posix_getpwuid(0)['shell'] . "' --login"); break; case 'syslog': // read syslog file